我是靠谱客的博主 自信草丛,这篇文章主要介绍Vue 出现 Uncaught TypeError: Cannot read property ‘_init‘ of undefined,现在分享给大家,希望可以做个参考。

这种情况是由于你创建Vue对象是缺少new
var vue = Vue({
el: "#bj",
data:{
title: "无中生有",
items:["何处","习惯","摸索"]
}
});
修改为以下
var vue = new Vue({
el: "#bj",
data:{
title: "无中生有",
items:["何处","习惯","摸索"]
}
});
</script>
```
最后
以上就是自信草丛最近收集整理的关于Vue 出现 Uncaught TypeError: Cannot read property ‘_init‘ of undefined的全部内容,更多相关Vue内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复