摘要: getWeekOnYears(val) { const year = dayjs(val).year() //获取年 const month = dayjs(val).month() + 1 //获取月 const day = dayjs(val).date() //获取天 const isLeap 阅读全文
posted @ 2021-11-02 14:52 偏执狂傲 阅读(1003) 评论(0) 推荐(0)
摘要: 基本用法: <div> <p>FullName: {{fullName}}</p> <p>FirstName: <input type="text" v-model="firstName"></p> </div> new Vue({ el: '#root', data: { firstName: ' 阅读全文
posted @ 2021-11-02 14:24 偏执狂傲 阅读(6872) 评论(0) 推荐(0)
摘要: downloadFile(file) { this.axios({ url: "/downUrl/downloadFile", //后端的下载地址 method: "post", responseType: "blob", data: { filePath: file.file_url } }).t 阅读全文
posted @ 2021-11-02 14:19 偏执狂傲 阅读(264) 评论(0) 推荐(0)
摘要: 在 utils目录下封装 debounce.js : let timeout = null function debounce(fn, wait) { if (timeout !== null) clearTimeout(timeout) timeout = setTimeout(fn, wait) 阅读全文
posted @ 2021-11-02 14:05 偏执狂傲 阅读(823) 评论(0) 推荐(0)