Various New Date () of

Gets month


new Date(2019,07,22).getMonth()
// 返回 7

new Date('2019-07-22').getMonth()
// 返回 6

Under iOS System 'yyyy-MM-dd' compatible wording


new Date('2019-07-22T18:00')

Guess you like

Origin www.cnblogs.com/fiy-noob/p/11227647.html