摘要: 1.最近项目上线,误删一些文件配置,抽空看一下这些配置的功能 学习地址:https://www.jianshu.com/p/b358a91bdf2d vue.config.js 是一个可选的配置文件,根目录中存在这个文件,那么它会被 @vue/cli-service 自动加载。 publicPath 阅读全文
posted @ 2021-04-09 15:22 子不语~ 阅读(22748) 评论(1) 推荐(1) 编辑
摘要: post:请求头配置 https://www.php.cn/js-tutorial-417131.html publicPath 在生产环境打包之后+端服务器一起配置子路径,生产环境+测试环境+开发环境 均适用 阅读全文
posted @ 2021-02-19 13:33 子不语~ 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1.body{ backgroung:ure(./ing/picture.png) backgroung-size:100% 100%; background-repeart:no-repeart; background-attachment:fixed; overflow:auto; } vue中 阅读全文
posted @ 2021-02-08 12:57 子不语~ 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: 具体解释:一直这样用 挺好用的 var num = 370825 num=num*0.01;//分到元 num+='';//转成字符串 var reg=num.indexOf('.') >-1 ? /(\d{1,3})(?=(?:\d{3})+\.)/g : /(\d{1,3})(?=(?:\d{3 阅读全文
posted @ 2020-12-31 11:08 子不语~ 阅读(781) 评论(0) 推荐(0) 编辑
摘要: https://www.jb51.net/article/90843.htm 原网址https://www.jb51.net/article/90843.htm 阅读全文
posted @ 2020-11-27 13:51 子不语~ 阅读(357) 评论(0) 推荐(0) 编辑
摘要: this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { deleteUser(val.userID).th 阅读全文
posted @ 2020-11-18 13:08 子不语~ 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.限制input框数据类型 复制代码 <el-form-item label="排序" :label-width="formLabelWidth"> <el-input v-model.number="forms.sort" autocomplete="off" type="text" :maxl 阅读全文
posted @ 2020-11-12 13:43 子不语~ 阅读(5180) 评论(0) 推荐(0) 编辑
摘要: 1. 安装rimraf : cnpm install rimraf -g 2. 执行: rimraf node_modules 删除文件荚 3. 清空缓存: npm cache clean --force 4. 重新安装淘宝镜像: npm install -g cnpm --registry=htt 阅读全文
posted @ 2020-11-03 13:20 子不语~ 阅读(8605) 评论(0) 推荐(1) 编辑
摘要: 1.https://blog.csdn.net/zsl471260400/article/details/90675667?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.no 阅读全文
posted @ 2020-11-03 13:17 子不语~ 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Map 和 forEach 区别 .forEach和map的相同点 1.都是数组的方法+都是用来遍历数组 2.两个函数都有4个参数:匿名函数中可传3个参数item(当前项),index(当前项的索引),arr(原数组),还有一个可选参数this 3.匿名函数中的this默认是指向window的 4. 阅读全文
posted @ 2020-10-12 14:31 子不语~ 阅读(2756) 评论(0) 推荐(0) 编辑