From ddfcebeefdb5253244f82bd3794a711ee32bdd2b Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Sun, 25 Dec 2016 00:19:42 +0800 Subject: [PATCH] 删除冗余的代码,提升性能 --- test.js | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/test.js b/test.js index e66624d..0cc034a 100644 --- a/test.js +++ b/test.js @@ -241,4 +241,11 @@ // console.log(current); // var data = "5a0000010003accf23d4515f00000000000000000030003e198c00110814050300060034001400000004001f000301040200000000000000000003490056048c1f02000000000000000000000000003c5b"; -// console.log(data.length); \ No newline at end of file +// console.log(data.length); + +var moment = require('moment'); +var a = { + data: {a:1, b:2}, + time: moment().format('YYYY-MM-DD HH:mm:ss') +}; +console.log(JSON.stringify(a)); \ No newline at end of file -- Gitblit v1.8.0