摘要: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
阅读(183)
推荐(0)
编辑
posted @ 2019-04-02 17:23
calamus
阅读(826)
推荐(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
阅读(79)
推荐(0)
编辑