js get how many days a month

var Day = new new a Date (2018,10,0);    // last parameter is 0, which means the acquisition in October 2018 a total of how many days 
console.log (day.getDate ());   // 31

 

Guess you like

Origin www.cnblogs.com/web-record/p/11528838.html