
Vue错误
almostall
这个作者很懒,什么都没留下…
展开
-
can‘t find the template “#app”
使用Webpack打包时,用到Vue,进行配置,模块名名为app,配置完毕后出现 can‘t find the template “#app” 错误。解决:<body> <div id="app"> <h3>{{message}}</h3> </div> <!-- 注意把导入的hudle即该句放到vue模块后面 --> <script src="./dist/bundle.js"></scr原创 2020-11-06 16:55:06 · 239 阅读 · 0 评论 -
Invalid shorthand property initializer
用json格式定义一个对象时, const vm = new Vue({ el: '#app', data: { isTrue:false }, methods: { } });注意是“:”而不是“=”,老错!原创 2020-10-22 12:46:15 · 229 阅读 · 0 评论 -
Templates should only be responsible for mapping the state to the UI.
Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.组件标签没有闭合,如缺少外部包围的标签。原创 2020-10-22 12:15:22 · 1139 阅读 · 0 评论