随笔分类 -  nodejs

摘要:1 const moment = require( 'moment' ); 2 3 const begin_date = '2017-12-12', 4 end_date = '2018-01-19', 5 arr = getAllDays( begin_date, end_date ); 6 7 console.log( 'arr: ', arr ); 8 ... 阅读全文
posted @ 2017-12-19 00:16 金色元年 阅读(842) 评论(0) 推荐(0)
摘要:var assert = require('assert'); describe('mocha', function() { describe('#indexOf()', function() { it('mocha test', function() { var EQUAL = '0', RIGHT = '1',... 阅读全文
posted @ 2017-12-07 16:59 金色元年 阅读(941) 评论(0) 推荐(0)