摘要: JavaScript Array map() 方法 参考: https://www.runoob.com/jsref/jsref-map.html map() 方法返回一个新数组,数组中的元素为原始数组元素调用函数处理后的值。 map() 方法按照原始数组元素顺序依次处理元素。 注意: map() 阅读全文
posted @ 2020-10-26 16:03 Virya 阅读(2014) 评论(0) 推荐(0) 编辑
摘要: 渐变色 itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#FFF0F5' //浅色 }, { offset: 1, color: '#FFB6C1' 阅读全文
posted @ 2020-10-26 16:00 Virya 阅读(1163) 评论(0) 推荐(0) 编辑
摘要: 原文:https://blog.csdn.net/qq_38933412/article/details/82879127 案例:本例是在vue中格式化日期 1,在main.js中引入moment import moment from 'moment'; import 'moment/locale/ 阅读全文
posted @ 2020-10-26 14:23 Virya 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/u014471623/article/details/77991363 原因是:The code above is ok. You can mix require and export. You can‘t mix import and module 阅读全文
posted @ 2020-10-26 09:30 Virya 阅读(840) 评论(0) 推荐(0) 编辑