喵ow0呜

导航

 

2020年7月8日

摘要: 1、index.html文件内引入 1 <script src="<%= BASE_URL %>js/html-docx.js"></script> 2、在导出页面加入方法 1 // 导出 word 文档 2 exportDocx() { 3 // 克隆报告HTML 4 let contentDoc 阅读全文
posted @ 2020-07-08 14:25 喵ow0呜 阅读(15168) 评论(1) 推荐(0) 编辑
 

2020年6月2日

摘要: 1 abc(a = {abc:1}){ 2 console.log(a) 3 } abc() // {abc:1} abc(1) // 1 阅读全文
posted @ 2020-06-02 11:58 喵ow0呜 阅读(885) 评论(0) 推荐(0) 编辑
 
摘要: text-overflow:ellipsis; white-space:nowrap; overflow:hidden; 阅读全文
posted @ 2020-06-02 10:16 喵ow0呜 阅读(2520) 评论(0) 推荐(0) 编辑
 

2020年5月13日

摘要: 设置倒计时时间 1.拿到开始时间时间戳+差距毫秒=结束时间戳 2.再用结束时间戳-系统当前时间戳=倒计时时间戳 3.倒计时时间戳换算成分和秒,赋值给countTime对象 1 let startTimeStamp = new Date( 2 res.data.startTime.substring( 阅读全文
posted @ 2020-05-13 17:44 喵ow0呜 阅读(424) 评论(0) 推荐(0) 编辑
 

2020年5月8日

摘要: 由于页面内的表格是根据elementUI二次封装的组件,表格的请求地址需要在父组件页面判断修改并传给子组件,结果发现需要点击两次,子组件的请求地址才会改变。 原写法: 1 search: { 2 deep: true, 3 handler(params) { 4 this.url = 5 this. 阅读全文
posted @ 2020-05-08 16:46 喵ow0呜 阅读(4582) 评论(0) 推荐(0) 编辑
 
摘要: 问题原因:参考element-ui文档: W3C 标准中有如下规定: When there is only one single-line text input field in a form, the user agent should accept Enter in that field as 阅读全文
posted @ 2020-05-08 16:29 喵ow0呜 阅读(2993) 评论(0) 推荐(1) 编辑