11 2021 档案
摘要:decodeURIComponent("编码") 将编码进行反转义成可读字符串 encodeURIComponent("骑手管理") 将可读字符串转义成编码 decodeURL 和 encodeURL 是转义整个URI decodeURL 会将url中的所有编码转成可读字符串 encodeURL 会
阅读全文
摘要:我们在使用NVM管理工具安装一个新的node后,发现没有npm可以使用 是因为在使用NVM安装node的时候不会默认安装npm,所以需要我们自己下载后放到nvm对应的node目录下面 npm下载地址:http://npm.taobao.org/mirrors/npm/ (下载对应版本的zip文件)
阅读全文
摘要:1.watch监听到数据的变化但页面没有刷新 在数据改动的代码后加 this.$forceUpdate(); 添加this.$forceUpdate();进行强制渲染,效果实现。因为数据层次太多,render函数没有自动更新,需手动强制刷新。 2.没有监听到数据的变化 例如:改变了数组中的某一项或者
阅读全文
摘要:getWeekOnYears(val) { const year = dayjs(val).year() //获取年 const month = dayjs(val).month() + 1 //获取月 const day = dayjs(val).date() //获取天 const isLeap
阅读全文
摘要:基本用法: <div> <p>FullName: {{fullName}}</p> <p>FirstName: <input type="text" v-model="firstName"></p> </div> new Vue({ el: '#root', data: { firstName: '
阅读全文
摘要:downloadFile(file) { this.axios({ url: "/downUrl/downloadFile", //后端的下载地址 method: "post", responseType: "blob", data: { filePath: file.file_url } }).t
阅读全文
摘要:在 utils目录下封装 debounce.js : let timeout = null function debounce(fn, wait) { if (timeout !== null) clearTimeout(timeout) timeout = setTimeout(fn, wait)
阅读全文

浙公网安备 33010602011771号