随笔分类 -  VUE

摘要:安装环境配置 https://www.jb51.net/article/251371.htm 阅读全文
posted @ 2022-08-26 21:27 码农阿亮
摘要:1.第一个解决方法是把mode改成history这个问题就会消失 2.第二个解决方法是publicPath设置成’/’,不能是’./’ const publicPath=''; module.exports = { // publicPath: process.env.NODE_ENV 'produ 阅读全文
posted @ 2022-01-10 15:06 码农阿亮 阅读(745) 评论(0) 推荐(0)
摘要:一、node.js下载和安装 官网下载安装nodejs,会自动捆绑安装npm,具体步骤省略。 二、express 安装 npm install express -g npm install -g express-generator g在前不会安装到全局(坑) npm install express- 阅读全文
posted @ 2021-12-04 18:27 码农阿亮 阅读(55) 评论(0) 推荐(0)
摘要:安装全局nrm(yrs) npm install nrm -g 查看镜像列表 nrm ls 切换镜像 nrm use yarn 添加镜像 nrm add yarn https://registry.yarnpkg.com/ nrm add taobao https://registry.npm.ta 阅读全文
posted @ 2021-12-04 17:50 码农阿亮 阅读(215) 评论(0) 推荐(0)
摘要:VUE中template的三种写法 一、直接写在构造器中 <!-- 第一种写法:直接写在构造器里 --> <div id ="app1"> </div> <script> var vm1 = new Vue({ el: '#app1', data: {}, methods: {}, template 阅读全文
posted @ 2021-10-15 15:26 码农阿亮 阅读(2433) 评论(0) 推荐(0)