The following code returns NaN in the IOS safari browser, but is normal in the Android browser:
var datetime = '2017-12-25 11:02:27';
var time = new Date(datetime );
console.log("Print : " + time);
Return result: NaN
replace - with /:
var datetime = '2017/12/25 11:02:27';
The problem of Date() of js under IOS system
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326236255&siteId=291194637
Recommended
Ranking