Math方法
发布于 5 年前 作者 hyuan 1207 次浏览 来自 问答

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

2 回复

错误提示是什么

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

回到顶部