会员
众包
新闻
博问
闪存
赞助商
Trae
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
blurs
博客园
首页
新随笔
联系
订阅
管理
2024年8月23日
百度地图中。上万级别数据打点渲染图标的方式
摘要: 1. 本体js文件内容 export const getRandom = () => { const crypto = window.crypto || window.msCrypto; const array = new Uint32Array(1); return crypto.getRando
阅读全文
posted @ 2024-08-23 15:02 blurs
阅读(22)
评论(0)
推荐(0)
2024年6月6日
如何用前端实现麦克风语音唤醒
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>我的简单网页</t
阅读全文
posted @ 2024-06-06 10:25 blurs
阅读(1963)
评论(0)
推荐(0)
2023年10月26日
基于 ElementUi框架的 table组件制作的 报表功能
摘要: <template> <!-- 月周计划报表 --> <div class="monthPlanForm"> <el-table :data="tableData" :span-method="spanMethod" style="width: 100%"> <el-table-column typ
阅读全文
posted @ 2023-10-26 11:19 blurs
阅读(553)
评论(0)
推荐(0)
2023年9月26日
file文件上传后 添加水印 并且生成file文件 使用formData上传
摘要: function hecheng (){ // 创建一个canvas const d2 = testCanvas.getContext('2d'); // 准备图片1 const url = URL.createObjectURL(file.files[0]); var img = document
阅读全文
posted @ 2023-09-26 09:27 blurs
阅读(27)
评论(0)
推荐(0)
2023年5月17日
创建react中 函数请求叠加只会请求一次 和 对象销毁后中断接口回调的方法
摘要: // 关于接口请求方法重复运行的问题 确保每次接口返回的都是最后一次请求执行 export const SingleAction = function(Action: (...param:any)=> Promise<any>){ // 创建唯一值 let AccessNewTime: number
阅读全文
posted @ 2023-05-17 16:02 blurs
阅读(193)
评论(0)
推荐(0)
2023年3月27日
随手写的一个 DataV代码 写到一半写不动了 弃坑!~
摘要: !(function(v, g){ g["DataV"] || (g["DataV"] = v()); })(function(){ const zoom = [0, 20, 40, 60, 80, 99]; // 获取唯一序列码 let xid_i = 0; const getXid = func
阅读全文
posted @ 2023-03-27 11:12 blurs
阅读(69)
评论(0)
推荐(0)
一个关于样式管理器的 Styled 对象!~~
摘要: const Styled = function(dom, styled, datas, isOnlyXid){ this.xid = isOnlyXid || getXid(); this.dom = dom; this.dom.classList.add(this.xid); this.style
阅读全文
posted @ 2023-03-27 11:10 blurs
阅读(17)
评论(0)
推荐(0)
2023年3月1日
关于 导数代表瞬时增加量的计算过程
摘要: f(x)=x3消除变化量之前是3x2+3x(dx)+dx2带入公式就是 2 * 2 * 2 = 8变化量为13 * 3 * 3 = 27带入导数公式可以得出变化率3x^2+3x(dx)+dx^2 = 3 * 2 * 2 + 3 * 2 * 1 + 1 * 1 = 19正好等于 3
阅读全文
posted @ 2023-03-01 09:35 blurs
阅读(57)
评论(0)
推荐(0)
2023年2月27日
关于百度地图 MapGL 视角移动函数 centerAndZoom 完成后触发事件
摘要: // 变化可视区域 替代掉centerAndZoom changeBounds (param: { center: number[], zoom: number, onAfter?: Function, isNoOnChange?: boolean }){ let isMove = false; c
阅读全文
posted @ 2023-02-27 09:20 blurs
阅读(274)
评论(0)
推荐(0)
2023年2月15日
使用indexDB对接口请求进行简单的缓存数据处理
摘要: export function _getAction (url: string, param?: any, header?: any){ return new Promise((resovle: any, error: any)=>{ indexDBMap.getDataByKey(JSON.str
阅读全文
posted @ 2023-02-15 11:11 blurs
阅读(131)
评论(0)
推荐(0)
下一页
公告