假如 a.js 中想引用 b.js 中的方法,怎么做呢?
首先、b.js
其中 module.exports 表示要对外暴露的方法。
然后、a.js
使用 require 引入,然后再调用。
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com