无法将Nan转换为Java.lang.long

时间:2011-08-25 12:40:36

标签: javascript

TimeoutInterval = TimeoutInterval * 60 * 1000; //Converting to milisecond
TimeOutObj = setTimeout(function(){    

},TimeoutInterval);

这里有什么问题,为什么我收到此错误Cannot convert Nan to Java.lang.long

2 个答案:

答案 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);