上一页 1 2 3 4 5 6 7 ··· 25 下一页
摘要: 项目源码:https://github.com/tobegreatman/koa-swagger/tree/master/docs 1、搭建环境:(Node版) 安装docsify: npm install docsify -g 启动doc server:(文档目录为 docs) docsify s 阅读全文
posted @ 2020-06-30 18:56 【云】风过无痕 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 如图要求回显特殊转义字符: 常规回显时,转义字符会被解析,导致无法按文本内容原样展示 处理方案: 1、使用html标签xmp(html5中已被废弃,会有隐患,不推荐) 2、嵌入到<script type="text/html">或<script type="text/template">内部,并加上 阅读全文
posted @ 2020-06-23 17:48 【云】风过无痕 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 场景: 项目由tab进行导航,点击分别跳转到不同项目,各项目通过iframe加载 问题: Safari浏览器环境,点击tab出现重复加载异常导致加载失败(如下图),经过调整后,又出现以弹出窗口方式加载项目 Form提交方式:(伪代码) <form target="iframename" action 阅读全文
posted @ 2020-06-22 18:52 【云】风过无痕 阅读(1991) 评论(0) 推荐(0) 编辑
摘要: 请求拦截涵盖了jquery、easyui、axios、element框架, 囊括表单提交、ajax提交和文件流提交等。 1、 easyui form $.fn.form.defaults.queryParams.token = '${token}'; 2、jquery.ajax $.ajaxSetu 阅读全文
posted @ 2020-06-12 14:26 【云】风过无痕 阅读(1667) 评论(0) 推荐(0) 编辑
摘要: F12 调试模式开启 1、普通方法断点调试: console面板输入方法名回车,然后双击结果进入方法内,然后任意断点。 2、Vue 渲染方式,方法断点: document.querySelector(selector)["__vue__"].funName. 3、视窗跳转前强制拦截(如系统登出):w 阅读全文
posted @ 2020-05-20 15:52 【云】风过无痕 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 方法: /** * 带进度监控 - 文件上传 * @param url{string}: 上传路径 * @param form{dom}: 表单元素 * @param progress{function}: 进度回调 * @param success{function}: 上传完成回调 **/ fu 阅读全文
posted @ 2020-05-09 17:37 【云】风过无痕 阅读(442) 评论(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 【云】风过无痕 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 项目场景: 菜单,根据点击的目标,自动调整展示位置 图示:(计算left、top偏移差) 算法: /* * * 相对偏移值 * @param target: 计算的目标对象 * @param reference: 计算的参照物 * */ reposition(target, reference) { 阅读全文
posted @ 2020-03-23 17:38 【云】风过无痕 阅读(574) 评论(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 【云】风过无痕 阅读(2451) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-04 10:28 【云】风过无痕 阅读(0) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 25 下一页