05 2018 档案

es6中对象转数组,转map
摘要://对象转数组let array = Object.keys(userPermission).map(key=> userPermission[key]) console.log(array) userPermission是数据对象 //对象转mapobjToStrMap(obj) { let st 阅读全文

posted @ 2018-05-21 11:37 creatP 阅读(15383) 评论(1) 推荐(0)

导航