Uncaught TypeError: Vue is not a constructor
怎么办呀
Uncaught TypeError: Vue is not a constructor
vue.js类库的js文件路径错误,题主可以改用别人网站上的,简单示例如下
<div id="app">
<div>{{message}}</div>
<div>{{name}}</div>
</div>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script>
new Vue({
el: '#app',
data: {
name: '张三',
message:'hello world'
}
});
</script>