📜  多个 js 文件 vuejs - Javascript 代码示例

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

代码示例1
//Use a single app.js with a single parent-component. Then, on each view that uses a VueJS component, write this:
//Where "desired-component" is a VueJS component that you've included in your app.js file on a line like this one: Vue.component('desired-component', require('./components/DesiredComponent.vue').default);