摘要: 代码 Typescript版 /** * TimeSpan just like the class TimpSpan in C# ,represent the time difference * @class TimeSpan */ class TimeSpan { constructor(mill 阅读全文
posted @ 2017-02-06 16:25 RocketRobin 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 代码部分 TypeScript 1 /** 2 * format a Date object 3 * 将 Date 转化为指定格式的String 4 * @param {Date} date 源日期对象 5 * @param {string} pattern 匹配模式 6 * @returns {s 阅读全文
posted @ 2017-02-06 16:15 RocketRobin 阅读(532) 评论(0) 推荐(0) 编辑