提交 caefc892 编写于 作者: 杜庆泉's avatar 杜庆泉

Date.toXString 示例调整

上级 2893e571
...@@ -57,10 +57,10 @@ export function testDate() : Result { ...@@ -57,10 +57,10 @@ export function testDate() : Result {
const event2 = new Date('2014-01-09 22:00:00'); const event2 = new Date('2014-01-09 22:00:00');
expect(event2.toString()).toEqual("Thu Jan 09 2014 22:00:00 GMT+0800"); expect(event2.toString()).toEqual("Thu Jan 09 2014 22:00:00 GMT+0800");
expect(event2.toTimeString()).toEqual("2014-01-09T14:00:00.000Z"); expect(event2.toTimeString()).toEqual("22:00:00 GMT+0800");
expect(event2.toISOString()).toEqual("2014-01-09T14:00:00.000Z"); expect(event2.toISOString()).toEqual("2014-01-09T14:00:00.000Z");
expect(event2.toJSON()).toEqual("Thu Jan 09 2014"); expect(event2.toJSON()).toEqual("2014-01-09T14:00:00.000Z");
expect(event2.toDateString()).toEqual("22:00:00 GMT+0800"); expect(event2.toDateString()).toEqual("Thu Jan 09 2014");
// #endif // #endif
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册