![](https://yuanspeed.com/wp-content/uploads/2023/04/image-1024x790.png)
在VScode中的樣子
![](https://yuanspeed.com/wp-content/uploads/2023/04/image-1-1024x610.png)
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="lib/vue.global.js"></script>
<link rel="stylesheet" href="sytle.css" />
<title>Vue應用</title>
</head>
<body>
<div id="app">
<h1>你好!{{name}}</h1>
</div>
<script src="index.js"></script>
</body>
</html>
index.js
const app = Vue.createApp({
//使用data進行數據綁定
data(){
}
}
});
app.mount("#app")