我收到此错误,tesyya.js:16 Uncaught TypeError: Vue.createApp is not a function 我的代码如下所示:
const app = Vue.createApp({
data() {
return {
count: 4
}
}
})
const vm = app.mount('#app')
console.log(vm.count)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My GK</title>
</head>
<body>
<div class="app">
<h1>this might be challenging for you</h1>
<ul id="addhere">
<li v-for="goal in goals">{{goal}}</li>
</ul>
<input type="text" name="text" id="addthis" v-model="enteredval" />
<input type="button" value="ADD" id="add" v-on:click="add()" />
</div>
<script src="https://unpkg.com/vue"></script>
<script src="tesyya.js"></script>
</body>
</html>
请让我纠正我的错误,我是初学者
HUH函数
撒科打诨
米脂
相关分类