a.js
export function aa() {}
b.js
export function bb() {}
index.js
export * from a.js
export * from b.js
main.js
import * as pubJS from index.js
// 循环加在 vue 原型上即可
a.js
export function aa() {}
b.js
export function bb() {}
index.js
export * from a.js
export * from b.js
main.js
import * as pubJS from index.js
// 循环加在 vue 原型上即可