Nodejs-模块系统
1.模块系统

执行字符串代码
方法1:eval和new function执行字符串



方法2:vm模块
runIn
ThisContext


runInNewContext

2.官方require实现方式




3.自己实现方式
json处理



JavaScript处理


面试题
Nodejs中this为什么是空对象


Nodjs为什么可以直接用exports、require、module、filename、dirname

Nodejs中为什么不能直接exports赋值,而可以给module.exports



导入包是使用var、let、还是const

