From 0f9a499a5727a7f19753165288f7aa27b604badd Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Mon, 26 Dec 2016 15:52:11 +0800 Subject: [PATCH] bugfix --- test.js | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index b851f88..0cc034a 100644 --- a/test.js +++ b/test.js @@ -236,6 +236,16 @@ //console.log(Math.floor(Math.random() * 3 + 1)) +// var moment = require('moment'); +// var current = moment().format('YYYY-MM-DD HH:mm:ss'); +// console.log(current); + +// var data = "5a0000010003accf23d4515f00000000000000000030003e198c00110814050300060034001400000004001f000301040200000000000000000003490056048c1f02000000000000000000000000003c5b"; +// console.log(data.length); + var moment = require('moment'); -var current = moment().format('YYYY-MM-DD HH:mm:ss'); -console.log(current); \ No newline at end of file +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