摘要: let http = require('http'); let urlStr = require('url'); let fs = require('fs'); let path = require('path'); http.createServer((req, res) => { const url = req.url; let pname = urlStr.parse(u... 阅读全文
posted @ 2018-07-12 11:36 悔创阿里-杰克马 阅读(775) 评论(0) 推荐(0) 编辑
摘要: let mongodb = require('mongodb'); let MongodbClient = mongodb.MongoClient; MongodbClient.connect('mongodb://127.0.0.1:27017/project', function (err, db) { if (err) { console.log(err); ... 阅读全文
posted @ 2018-07-12 11:32 悔创阿里-杰克马 阅读(185) 评论(0) 推荐(0) 编辑
求投食~(点图即可)