新的一天
This commit is contained in:
@@ -1,12 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vue-快速入门</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<h1>{{ msg }}</h1>
|
||||
<h1>{{count}}</h1>
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
import { createApp } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
|
||||
|
||||
</body>
|
||||
</html>
|
||||
createApp({
|
||||
data() {
|
||||
return {
|
||||
msg: 'Hello Vue!',
|
||||
count:100
|
||||
}
|
||||
}
|
||||
}).mount('#app')
|
||||
</script>
|
||||
<!-- 就是下面这行多余的,需要删除 -->
|
||||
</body>
|
||||
Reference in New Issue
Block a user