摘要: 获取24小时时间 let time=new Date().toLocaleString('chinese',{hour12:false}); 获取当天时间 var now = new Date(); var year = now.getFullYear(); //得到年份 var month = n 阅读全文
posted @ 2022-04-12 16:51 宇智波copy 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 倒叙循环 for (let i = a.length-1; i >= 0; i--) { if(a[i] 3){ console.log(i); a.splice(i,1); } } console.log(a);//[0] 数组降维 const deps = { '采购部':[1,2,3], '人 阅读全文
posted @ 2022-04-11 19:10 宇智波copy 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 超出省略 overflow:hidden; text-overflow:ellipsis; white-space:nowrap; 滚动条修改 ::-webkit-scrollbar { width: 6px; height: 6px; background-color: transparent; 阅读全文
posted @ 2022-04-11 19:07 宇智波copy 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 下载方式 const aBlob = new Blob( array, options ); export function downLoadFile(data: ArrayBuffer, fileNmame: string, type: string, fileType: string = 'xl 阅读全文
posted @ 2022-03-03 10:48 宇智波copy 阅读(203) 评论(0) 推荐(0) 编辑
摘要: obj.offsetTop 指 obj 距离上方或上层控件的位置 返回距离当前元素最近的采用定位祖先元素(若距离不生效注意父元素的定位方式) public toTreeNode(position: string, level: number): void { const e = document.q 阅读全文
posted @ 2022-02-23 15:44 宇智波copy 阅读(33) 评论(0) 推荐(0) 编辑
摘要: const copyTree = JSON.parse(JSON.stringify(this.searchDatabaseList)); this.databaseList = copyTree.filter((node) => this.filterData(node, (ele) => { r 阅读全文
posted @ 2022-02-15 15:46 宇智波copy 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.整点时间大小比较 例:08:20:21 和 08:22:23的大小 let z = '20:01:00'; let z1 = '10:00:00'; let date = new Date(); console.log(date) //Fri Jul 17 2020 09:54:52 GMT+0 阅读全文
posted @ 2020-07-17 10:00 宇智波copy 阅读(2731) 评论(0) 推荐(0) 编辑
摘要: 1.input输入数字校验 <el-input class="timeRange" type="number" v-model="value " size="mini" min='0' placeholder="请输入内容" :disabled="!timeTemplateCheck1"></el- 阅读全文
posted @ 2020-06-19 15:23 宇智波copy 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.npm install -g increase-memory-limit 2.increase-memory-limit 3.重启解决 阅读全文
posted @ 2020-06-08 11:17 宇智波copy 阅读(382) 评论(0) 推荐(0) 编辑
摘要: <fu> <zi ref='child'></zi> </fu> this.$refs.child.forEach(_ => _.子组件方法()); 阅读全文
posted @ 2020-05-21 16:16 宇智波copy 阅读(690) 评论(0) 推荐(0) 编辑