📜  vue 创建组件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:45.153000             🧑  作者: Mango

代码示例1
// Create Vue application
const app = Vue.createApp(...)

// Define a new component called todo-item
app.component('todo-item', {
  template: `
  • This is a todo
  • ` }) // Mount Vue application app.mount(...)