使用lodash处理数据
2021-09-24 本文已影响0人
PharkiLL
安装lodash 挂在全局
cnpm i lodash -S
import _ from 'lodash'
Vue.prototype._ = _
1. 数组对象去重
list = _.uniqWith(arr, _.isEqual)
安装lodash 挂在全局
cnpm i lodash -S
import _ from 'lodash'
Vue.prototype._ = _
1. 数组对象去重
list = _.uniqWith(arr, _.isEqual)