- 博客(153)
- 资源 (1)
- 收藏
- 关注
原创 Electron本地打包报错 Unsupported GLOBAL_AGENT.HTTP_PROXY configuration value: URL protocol must be “http:“
Unsupported GLOBAL_AGENT.HTTP_PROXY configuration value: URL protocol must be "http:"
2022-03-15 12:12:18
943
2
原创 JavaScript生成随机数为什么用(9301,49297,233280)作为基数
JavaScript随机数生成器// Found this seed-based random generator somewhere// Based on The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu)var seed = 1;/** * return a random number based on a seed * @param seed * @returns {number} */
2021-04-25 16:27:20
693
原创 使用黄金比例与HSV颜色模型生成随机RGB颜色
Javascript代码实现function hsv_to_rgb(h: number, s: number, v: number) { let h_i = Math.floor(h * 6); let f = h * 6 - h_i; let p = v * (1 - s); let q = v * (1 - f * s); let t = v * (1 - (1 - f) * s); let r = 0 let g = 0 let b = 0 if (h_i ==
2021-04-21 16:06:20
893
原创 使用father打包发布前端工具库
father库说明GitHub:https://github.com/umijs/father安装yarn add father项目配置0、项目结构1、配置fatherrc.js2、配置src/index.js3、配置components/index.tsx4、运行:father build运行后项目文件夹内会生成一个es文件目录,里面就是打包好的代码库发布代码包(1)发布到私有GitHub仓库// 正常的git提交代码git add .git commit ""
2021-03-20 17:25:22
9480
2
原创 requestAnimationFrame进行循环渲染和事件触发限频
定义requestAnimationFrame的作用是告诉浏览器——你希望执行一个动画,并且要求浏览器在下次重绘之前调用指定的回调函数更新动画。该方法需要传入一个回调函数作为参数,该回调函数会在浏览器下一次重绘之前执行。一般一秒内执行60次,与屏幕刷新频率相同。与setInterval相比的优势// 后续更新动画循环渲染let lastRenderTimestamp = nulllet drawTimer = nulllet renderFPS = 1 / 60function rend
2021-02-27 11:20:27
1245
Adaptive Thresholding Using the Integral Image.pdf
2019-03-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人