TimeoutInterval = TimeoutInterval * 60 * 1000; //Converting to milisecond
TimeOutObj = setTimeout(function(){
},TimeoutInterval);
这里有什么问题,为什么我收到此错误Cannot convert Nan to Java.lang.long
。
答案 0 :(得分:1)
试
var TimeoutInterval = 1;
TimeoutInterval = TimeoutInterval * 60 * 1000;
答案 1 :(得分:1)
这样做:
var TimeoutInterval = 1;
TimeoutInterval = TimeoutInterval * 60 * 1000; //Converting to milisecond
var TimeOutObj = setTimeout(function(){},TimeoutInterval);