1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Moment.js 2.14.1 发布,JavaScript 日期处理 下载

本帖由 漂亮的石头2016-07-28 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,974
    赞:
    47
    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 是一个简单易用的轻量级JavaScript日期处理类库,提供了日期格式化、日期解析等功能。它支持在浏览器和NodeJS两种环境中运行。此类库能够将给定的任意日期转换成多种不同的格式,具有强大的日期计算功能,同时也内置了能显示多样的日期形式的函数。另外,它也支持多种语言,你可以任意新增一种新的语言包。
    Moment.js 2.14.1 发布,JavaScript 日期处理下载地址
     
正在加载...