摘要:
1.对象数组去重 let hash = {} let config = [{ id: 2, name: 'Y', }, { id: 3, name: 'A', }, { id: 5, name: 'S', }] const newArr = config.reduceRight((item, nex
阅读全文
posted @ 2019-04-02 17:57
calamus
阅读(842)
推荐(0)
编辑
摘要:
vue-svg-tree 基于vue和svg的动态树形UI 截图 应用 npm install vue-svg-tree 示例 <template> <div> <vue-svg-tree :treeData="treeData" svgId='svg' ref="svgTree" ></vue-s
阅读全文
posted @ 2019-04-02 17:23
calamus
阅读(1607)
推荐(0)
编辑
摘要:
//验证0-99两位小数点的数字 rg100 = /^((\d{1,2}(\.\d{1,2})?))$/ stringNumber = /^[0-9]*$/ normalNumber = /^\d+(\.\d+)?$/ account = /^[a-zA-Z0-9_-]{4,}$/ cellPhon
阅读全文
posted @ 2019-04-02 12:09
calamus
阅读(186)
推荐(0)
编辑