上一页 1 2 3 4 5 6 7 8 ··· 26 下一页
摘要: F12 调试模式开启 1、普通方法断点调试: console面板输入方法名回车,然后双击结果进入方法内,然后任意断点。 2、Vue 渲染方式,方法断点: document.querySelector(selector)["__vue__"].funName. 3、视窗跳转前强制拦截(如系统登出):w 阅读全文
posted @ 2020-05-20 15:52 【云】风过无痕 阅读(453) 评论(0) 推荐(0)
摘要: 方法: /** * 带进度监控 - 文件上传 * @param url{string}: 上传路径 * @param form{dom}: 表单元素 * @param progress{function}: 进度回调 * @param success{function}: 上传完成回调 **/ fu 阅读全文
posted @ 2020-05-09 17:37 【云】风过无痕 阅读(451) 评论(0) 推荐(0)
摘要: 公司业务面向北美,在项目中出现一个奇异现象new Date后返回结果有偏差(如: new Date('2020-04-21'),实际返回的是 2020-04-20 17:xx:xx) 而北京时间的话 new Date('2020-04-21')返回结果为'2020-04-21 08:00:00' 猜 阅读全文
posted @ 2020-04-26 11:27 【云】风过无痕 阅读(129) 评论(0) 推荐(0)
摘要: 项目场景: 菜单,根据点击的目标,自动调整展示位置 图示:(计算left、top偏移差) 算法: /* * * 相对偏移值 * @param target: 计算的目标对象 * @param reference: 计算的参照物 * */ reposition(target, reference) { 阅读全文
posted @ 2020-03-23 17:38 【云】风过无痕 阅读(602) 评论(0) 推荐(0)
摘要: 参考配置: (场景:为了解决chrome80+ Same-site-default-value,跨站无法传递cookie问题) user nginx; worker_processes 1; error_log /var/log/nginx/error.log info; pid /var/run/ 阅读全文
posted @ 2020-03-16 10:16 【云】风过无痕 阅读(2481) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-03-04 10:28 【云】风过无痕 阅读(0) 评论(0) 推荐(0)
摘要: 项目中输入域,特别是文本输入域,一般都会禁用某些特殊字符,基于这个需求,实现了一个全局设置禁止输入特别字符的方法,核心代码: Array.from(document.querySelectorAll('input')).map(function(item){ // 检索所有输入域,使用者可以修订别的 阅读全文
posted @ 2020-01-16 15:39 【云】风过无痕 阅读(806) 评论(0) 推荐(0)
摘要: CSS: 阅读全文
posted @ 2020-01-08 13:31 【云】风过无痕 阅读(131) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-12-23 16:59 【云】风过无痕 阅读(0) 评论(0) 推荐(0)
摘要: npm 发布个人包时,遇到不少坑,总结如下(可能不全): 1、npm版本过低,处理:npm install -g npm update 2、可能权限原因,处理:npm publish --access=public 3、npm 源不对,处理:npm config set registry https 阅读全文
posted @ 2019-10-31 10:01 【云】风过无痕 阅读(7492) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 26 下一页