12 2021 档案
摘要:前提:页面DOM中按钮停止刷新: <button type="button" class="btn btn-primary" id="stopPage" style="position: absolute; left: 86%;">关闭自动刷新</button> 第一步:把返回的数据转成JSON格式
阅读全文
摘要:前提实例: // 渲染行政组织 function setTree() { $.ajax('http://10.131.111.91:8081/report/unitTree', { dataType: 'json', type: 'get', timeout: 10000, contentType:
阅读全文
摘要:总体实现功能 : 父页面获取子页面中的数据和功能,进行把数据调取接口并提交 第一步:前提:在父页面中写入一个input id为 treeSelectData 且隐藏 第二步:在子页面的提交数据返回给父页面的按钮中进行触发事件: // 提交数据并返回主页按钮 $('#checkBtn').on('cl
阅读全文
摘要:参照: 第一步:下载插件链接:https://sc.chinaz.com/jiaoben/180427093340.htm 实现页面如下: 第二步:因下载之后,会出现图片素材残缺问题: 解决方案: 直接在相应的素材页面演示界面中按F12,把里面的source中的图片另存为出来,然后存到default
阅读全文
摘要:拉起svn 运行 碰到问题: 本地项目问题 解决办法: 重新打开cmd窗口: 取消ssl验证: npm config set strict-ssl false 运行 npm install --save js-export-excel vue-json-excel 然后npm run dev运行成功
阅读全文
摘要:let arr = ['c', '', 'g', null, undefined, 'f', ' ']; let newArr=arr.filter(i=>i && i.trim()) console.log(newArr); [ 'c', 'g', 'f' ] trim()用于去掉字符串首尾空白字
阅读全文