原因是vue2和vue3写法不对
正确是
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript" src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app">
{{message}}
</div>
<script>
Vue.createApp({
data() {
return {
message:'dadas'
}
}
}).mount('#app')
</script>
</body>
</html>
文章来自 www.96net.com.cn
标签:vue,Vue,TypeError,constructor,Uncaught,message From: https://www.cnblogs.com/96net/p/17455593.html