var moment = require('moment'); moment.locale('zh-cn'); var today = {}; var _today = moment(); today.year = _today.format('yyyy'); /*现在的年*/ today.date... ...
分类:
Web程序 时间:
2017-07-22 00:06:01
阅读次数:
4716
Scientists have found that although we are prone to snap over reactions, if we take a moment and think about how we are likely to react, we can reduce ...
分类:
其他好文 时间:
2017-07-18 10:02:04
阅读次数:
1335
日历控件: https://fullcalendar.io/docs/ https://fullcalendar.io/docs/event_data/events_function/ https://fullcalendar.io/docs/event_data/Event_Object/ htt ...
分类:
Web程序 时间:
2017-07-05 00:33:20
阅读次数:
388
高手速来围观帮忙解惑~关于ASP.NET MVC Bundling and RequireJS的取舍问题,最近比较困惑,我希望有一种方式可以结合两者的优点。作为.NET程序员,难道你没有过这方面的困惑吗? 因为我感觉各自都有优缺点,RequireJS的缺点在于,在开发的时候,你不能引入压缩后的js或 ...
分类:
Web程序 时间:
2017-06-30 09:43:16
阅读次数:
245
nodevarmoment=require(‘moment‘);//获取指定月份最后一天moment(‘2017-12-24‘).endOf(‘month‘).format("YYYY-MM-DD")2017-07-31//指定月份加九个月后的最后一天moment(‘2017-12-24‘).add(‘months‘,9).endOf(‘month‘).format("YYYY-MM-DD")2018-09-30
分类:
Web程序 时间:
2017-06-28 14:29:19
阅读次数:
248
moment("12-25-1995", "MM-DD-YYYY"); //返回一个moment对象,第二个字符串格式 常见用法moment("3-2014", "Q-YYYY"); //Q指的是季度moment("3-2014", "x"); //小写x是毫秒级,大写x是秒级moment("125 ...
分类:
Web程序 时间:
2017-06-25 16:56:32
阅读次数:
203
代码github地址:https://github.com/haozhaohang/library 作者: 易怜白 项目中使用了时间日期的处理方法,只使用了部分方法,为了不在引入第三方的库(moment.js),这里自己封装了项目中使用到的方法。 要实现以下功能: 一、基础代码: arg = new ...
分类:
Web程序 时间:
2017-06-22 21:48:49
阅读次数:
226
github源码地址: www.baidu.com 作者: 易怜白 项目中使用了时间日期的处理方法,只使用了部分方法,为了不在引入第三方的库(moment.js),这里自己封装了项目中使用到的方法。 要实现以下功能: 一、基础代码: arg = new Date().getTime() :这里使用解 ...
分类:
Web程序 时间:
2017-06-22 20:12:32
阅读次数:
415
Number one: Don't multitask.//三心二意 Be present , Be that moment. Number two: Don't pontificate.//好为人师 The true listening requires a setting aside of on ...
分类:
其他好文 时间:
2017-06-17 13:02:19
阅读次数:
336
moment.js(js date)日期格式化处理插件强大,官方网站:http://momentjs.com/你也可以查看官方网站E文原版moment.js api。当前日期格式化 moment().format('MMMM Do YYYY, h:mm:ss a'); -> 四月 6日 2015, ...
分类:
编程语言 时间:
2017-05-26 21:46:40
阅读次数:
267