nodejs// 访问http://localhost:3000/home?id=001&name=tomvar http = require('http');var url = require('url');http.createServer(function(req, res) { var... Read More
posted @ 2015-11-07 21:46
tinyphp
Views(402)
Comments(0)
Diggs(0)
如果在nodejs下npm install moment引用模块:var moment = require('moment');用法:当前时间:2015-11-07 18:00:51moment().format('YYYY-MM-DD HH:mm:ss');今天是星期几:6moment().for... Read More
posted @ 2015-11-07 18:10
tinyphp
Views(730)
Comments(0)
Diggs(0)