<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/3.2.31/vue.global.min.js" type="application/javascript"></script>
<div id="app">
<h1>{{ message }}</h1>
</div>
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
html {
height: 100%;
}
body {
height: 100%;
background: #212121;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
const { createApp } = Vue
createApp({
data() {
return {
message: 'Hello Vue3!'
}
}
}).mount('#app')
预览
控制台