- 博客(5)
- 收藏
- 关注
原创 js 数组对象去重reduce
数组对象去重// 根据对象的code值去重,即数组中code相同的只保留一个let arr = [ { id: 1, code: 2000, name: '秋歌' }, { id: 2, code: 2001, name: '瓜老板' }, { id: 3, code: 1001, name: '卷咪' }, { id: 4, code: 1002, name: '卷米啊' }, { id: 2, code: 2001, n
2022-01-04 16:33:28
689
原创 根据返回的某一个字段值,去匹配数组对象的某一项, 返回对应的字段值
formatTag(str) { const arr = str.split(',')// 先转成数组 return this.specialTagList.filter(item => arr.includes(String(item.code))).map(item=> item.name).join(',') },
2022-01-03 23:48:36
246
原创 js前端 纯js的excel导出/下载
downLoad () { console.log(11) const sheetData = [] var option = {} option.fileName = '下载excel' option.datas = [ { sheetData: sheetData, sheetName: 'sheet', sheetHeader: ['Country', 'Make',
2021-12-30 10:33:01
700
1
原创 如何删除优快云自己上传的资源(2021年12月29亲测有效)
今天想删除自己之前上传的优快云资源,发现搜了一堆百度都是老旧的方法都用不了.后面咨询客服啦! 给我了删除操作的截图, 分享给你们!下载资源管理里自行操作:https://mp.youkuaiyun.com/mp_download/manage/download/UpDetailed?spm=1011.2124.3001.5299
2021-12-29 19:41:08
2190
4
原创 前端js 数组依据数组对象进行排序
// order数组要根据数组对象countryList的顺序进行排列let countryList=[ { name: 'United States', code: 'US' }, { name: 'Poland', code: 'PL' }, { name: 'Turkey', code: 'TR' }, { name: 'Portugal', code: 'PT' }, { name: 'Belgium', code:
2021-12-29 18:40:08
848
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人