Vue
出现bug就输了
这个作者很懒,什么都没留下…
展开
-
vue create 项目时关闭eslint
修改package.json "eslintConfig": { "root": false, //这里的true改为false "env": { "node": false //这里的true改为false }, "extends": [ "plugin:vue/essential", "eslint:reco...原创 2020-01-29 10:36:07 · 1232 阅读 · 0 评论 -
vue框架写v-for循环 错误提示Elements in iteration expect to have 'v-bind:key' directives
<ul> <li v-for="item in list">{{item}}</li> </ul> <ul> <li v-for="item in list" :key='item'>{{item}}</li> </ul> Vue 2.2.0+的版...原创 2020-01-28 17:32:46 · 252 阅读 · 0 评论 -
解决 cnpm : 无法加载文件 C:\Users\hp\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
解决方法: 1. 以管理员身份运行power shell 2. 输入set-ExecutionPolicy RemoteSigned 然后输入A 回车 问题解决 参考自:https://blog.csdn.net/y_0232/article/details/102555209转载 2020-01-04 16:33:45 · 11069 阅读 · 1 评论