为了实现这个,需要将期望导出的对象赋值给module .exports。注意,将期望的对象赋值给exports会简单地重新绑定到本地exports变量上,这可能不是你想要的。
Note that assigning the desired object to exports will simply rebind the local exports variable, which is probably not what you want to do. module.
为了实现这个,需要将期望导出的对象赋值给module .exports。注意,将期望的对象赋值给exports会简单地重新绑定到本地exports变量上,这可能不是你想要的。
Note that assigning the desired object to exports will simply rebind the local exports variable, which is probably not what you want to do. module.
应用推荐