a.jsimport B from './b'const b = new B()console.log(b)export default class A {
testa = 'aaa'}b.jsimport A from './a'const a = new A()console.log(a)export default class B {
testb = 'bbb'}
假如 a.js 和 b.js 互相 import 對方,會有什么影響?
長風秋雁
2019-01-24 21:53:50