var start=1491789600000;//2017-4-10 10:00
var end=1494381600000;//2017-5-10 10:00
var utc=end-start;
utc/(24*60*60*1000);//30
同样小时:utc/(60*60*1000);//720小时;
分:utc/(60*1000);
It is recommended to use third-party momentjs directly. If you think the answer is right, remember to follow fundebug (free full-stack monitoring website)
This is what I wrote before,
It is recommended to use third-party momentjs directly. If you think the answer is right, remember to follow fundebug (free full-stack monitoring website)