摘要:
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... 阅读全文
摘要:
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); ... 阅读全文