SOURCE

console 命令行工具 X clear

                    
>
console
// Create a Vue application
const app = Vue.createApp({});

// Define a new global component called button-counter
app.component('button-counter', {
  data() {
    return {
      count: 0
    }
  },
  template: `
    <button @click="count++">
      You clicked me {{ count }} times.
    </button>`
})

app.mount("#root");
<div id="root">
	<button-counter></button-counter>
	<button-counter></button-counter>
	<button-counter></button-counter>
</div>

本项目引用的自定义外部资源