自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 JSON Tree结构修改

JSON[{id: 22, parent: “-1”, text: “酒”}{id: 23, parent: “22”, text: “白酒”}{id: 24, parent: “22”, text: “红酒”}{id: 25, parent: “22”, text: “洋酒”}{id: 26, parent: “22”, text: “香槟”}{id: 27, parent: “22”, text: “药酒”}{id: 28, parent: “22”, text: “麦卡伦”}]重组

2020-09-30 09:59:38 228

原创 ES6语法

剩余参数 const show = (a, b, ...c) => { console.log(a, b, c); }; show(1, 2, 3, 4, 5, 22);运行结果数组展开 let arr1 = [1, 2, 3]; let arr2 = [4, 5, 6]; let arr = [...arr1, ...arr2]; console.log(arr);运行结果json展开let json = { a: 15, b: 14 };

2020-09-24 22:06:35 87

原创 数组添加键值

payload.Message.forEach((item: { key: any; InfoID: any }) => { const obj = item; obj.key = item.InfoID; });

2020-09-21 23:28:00 828

原创 map修改josn数据

res.Entity.map(function(item, index) { res.Entity[index] = { 'title': item.Value, 'value': item.Key } })

2020-09-18 15:35:13 89

原创 xlsx导出excel

cnpm i -S xlsx// 导出表格 const exportDataHandler = () => { const wb = XLSX.utils.book_new(); const jsonData = tableData.Message; jsonData.forEach((item: any, index: number) => { jsonData[index] = {

2020-09-18 15:16:05 475

原创 moment() 获取当前时间

moment().format("YYYY-MM-DD HH:mm:ss"); //当前时间moment().subtract(10, "days").format("YYYY-MM-DD"); //当前时间的前10天时间moment().subtract(1, "years").format("YYYY-MM-DD"); //当前时间的前1年时间moment().subtract(3, "months").format("YYYY-MM-DD"); //当前时间的前3个月时间moment(

2020-09-16 16:10:33 22005

空空如也

空空如也

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

TA关注的人

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