【发布时间】:2019-09-14 05:52:30
【问题描述】:
我需要使用 Square 特定功能制作的外部脚本。我希望能够在我的挂载方法中调用其中一个函数。我现在需要这个 square.js 文件的方法吗?
app.js
window.Vue = require('vue');
var square = require('./square.js');
Vue.component('ShopArt',
require('./components/ShopArt.vue').default);
new Vue({
el: "#app",
data() {
return {
shop: shop,
}
},
mounted() {
}
......
【问题讨论】: