Skip to content

创建一个应用

构建工具

html
<!DOCTYPE html>
<html>
  <body>
    <div id="app"></div>
    <script type="module" src="./main.js"></script>
  </body>
</html>
vue
<template>
  <h1>Hello world</h1>
</template>
js
import { createApp } from 'vue'
import App from './App.vue'

createApp(App).mount('#app')

基于 MIT 许可发布