11 2021 档案

摘要:getNowTime() { var date = new Date(); this.year = date.getFullYear(); this.month = date.getMonth() + 1; this.date = date.getDate(); this.hour = date.g 阅读全文
posted @ 2021-11-24 11:24 Re。 阅读(334) 评论(0) 推荐(0)
摘要:dataZoom:[ { type: 'slider', maxValueSpan:5,//显示数据的条数(默认显示10个) show: true, yAxisIndex: [0], left: '93%', //滑动条位置 start:100,//默认为0 end: 70,//默认为100 ori 阅读全文
posted @ 2021-11-22 15:18 Re。 阅读(3658) 评论(0) 推荐(0)
摘要:var clone =JSON.parse(JSON.stringify(arr))弊端:只能拷贝Number, String, Boolean, Array, 扁平对象,即那些能够被 JSON 直接表示的数据结构。 ; 阅读全文
posted @ 2021-11-15 16:47 Re。 阅读(113) 评论(0) 推荐(0)
摘要:download(e) { // 下载文件 const link = document.createElement('a') link.style.display = 'none' link.href = `${window.config.baseUrl}FileService/File/Downl 阅读全文
posted @ 2021-11-15 14:51 Re。 阅读(169) 评论(0) 推荐(0)
摘要:1、只有一个代理接口 (1)在package.json中添加"proxy": "需代理的接口" (2)使用axios调接口时就直接写本地端口号即可 2、有多个代理接口 (1)新建setupProxy.js文件夹(名字不能改,且内容要写COMMON.JS,不能写ES6) (2)调用接口 阅读全文
posted @ 2021-11-07 17:01 Re。 阅读(84) 评论(0) 推荐(0)