1、新建一个js文件,命名为go.js,用于讲解node怎么引入自定义的模块。
2、在jsDemo文件中,通过require方法引入自定义的模块。
3、运行js文件,可以看到go.js中的方法成功被jsDemo文件调用。