nodeJS module理解
先看一个简单的module实例:student.jsfunction add(stu){ console.log("stuName:"+stu);}exports.add = add;teacher.jsfunction add(teacher){ console.log("teacherName:"+teacher);}exports.add = add;index.jslet s