Math方法

发布于 7 年前作者 hyuan1335 次浏览最后编辑 7 年前来自 ask

小程序现在不支持Math方法吗?在IOS9上边计算结果一直为NULL。Math.floor方法,但是在安卓上正常。

2 回复
mren
mren1 楼6 年前

错误提示是什么

guiying12
guiying122 楼5 年前

let hour=Math.floor((leftsecond-day1*24*60*60)/3600); 

    var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60); 

    console.log("hour = " + hour);

    console.log(minute);   

获取到的时间直接就是NaN和NULL