自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 614

原创 根据返回的某一个字段值,去匹配数组对象的某一项, 返回对应的字段值

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 192

原创 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 669 1

原创 如何删除CSDN自己上传的资源(2021年12月29亲测有效)

今天想删除自己之前上传的CSDN资源,发现搜了一堆百度都是老旧的方法都用不了. 后面咨询客服啦! 给我了删除操作的截图, 分享给你们! 下载资源管理里自行操作: https://mp.csdn.net/mp_download/manage/download/UpDetailed?spm=1011.2124.3001.5299

2021-12-29 19:41:08 2126 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 798

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除