发布于 2016-07-28 00:33:12 | 153 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

Moment.js Javascript日期处理类库

moment.js是一个轻量级并且健壮的js日期处理类库,相信大家在javascript开发过程中,都自己动手写过,或者使用google和百度搜索过相关的实现函数


Moment.js 2.14.1 发布,改进记录:

2.14.1

  • #3280 Fix typescript definitions

2.14.0 See full changelog

New Features

  • #3233 Introduce month.isFormat for format/standalone discovery

  • #2848 Allow user to get/set the rounding method used when calculating relative time

  • #3112 optimize configFromStringAndFormat

  • #3147 Call calendar format function with moment context

  • #3160 deprecate isDSTShifted

  • #3175 make moment calendar extensible with ad-hoc options

  • #3191 toDate returns a copy of the internal date object

  • #3192 Adding support for rollup import.

  • #3238 Handle empty object and empty array for creation as now

  • #3082 Use relative AMD moment dependency

Bugfixes

  • #3241 Escape all 24 mixed pieces, not only first 12 in computeMonthsParse

  • #3008 Object setter orders sets based on size of unit

  • #3177 Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)

  • #3230 fix passing date with format string to ignore format string

  • #3232 Fix negative 0 in certain diff cases

  • #3235 Use proper locale inheritance for the base locale, fixes #3137



历史版本 :
Moment.js 2.14.1 发布,JavaScript 日期处理
Moment.js 2.7.0 发布,JavaScript 日期时间处理
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务