メソッド文字列のJSオブジェクトの日付の概要

    console.log(today.toString()); //月2019年11月11日午前11時19分12秒GMT + 0800(中国標準時)
    console.log(today.toISOString())。//2019-11-11T03:19:12.534Z
    console.log(today.toTimeString()); // 11:19:12 GMT + 0800(中国標準時)
    console.log(today.toUTCString())。//月、2019年11月11日3時19分12秒GMT
    console.log(today.toLocaleDateString())。// 2019年/ 11月11日
    console.log(today.toLocaleString())。// 2019年/ 11月11日11時19分12秒上午
    console.log(today.toLocaleTimeString())。//上午午前11時19分12秒
 


problem.ts:
problem.ts:220 
problem.ts:221 
problem.ts:222 
problem.ts:223 
problem.ts:224 

おすすめ

転載: www.cnblogs.com/johnjackson/p/11511731.html