EventEmitter 提供了多個屬性,如 on 和 emit。on 函數(shù)用于綁定事件函數(shù),emit 屬性用于觸發(fā)一個事件。接下來我們來具體看下 EventEmitter 的屬性介紹。
2.模塊系統(tǒng)
http://www.runoob.com/nodejs/nodejs-module-system.html
3.安裝 Express,以下命令會將 Express 框架安裝在當(dāng)前目錄的 node_modules 目錄
$ cnpm install express --save
$ cnpm install body-parser --save
$ cnpm install cookie-parser --save
$ cnpm install multer --save
4.nodejs+mongoDB搭建
http://www.toutiaokeji.com/internet/20170326/55584.html