一个js 怎样调用另一个 js 里滴函数?
cc.loader.loadJs(baseDir, jsList, cb)
current component call target component:
target node.getComponent(targetComponentName).func()
current component call assetdb js:
require(targetJsName).func()
current component call package js:
just use the global instance.func()
我擦,能说中文吗?或者说详细点。。。。。就好像这个current component call package js:
just use the global instance.func(),也不知道怎样才能是全局函数 global instance.func()啊?也不知道怎样调用啊。。。
虽然已经很感谢了!
var xxxx=require ’ xxxx ’
不行吗
谢谢谢谢!!



