0

脚本在 Chrome、Firefox 和 IE 9 和 10 中运行良好,但在 IE 7 或 8 中运行良好。我得到的错误是

行:53 字符:1 错误:对象不支持此属性或方法代码:0

第 53-64 行是

  calc = function(obj){
  /* get the sibling objects */
  objN = obj.name.match(/\d+$/); //get the object number so we can find it's siblings
  f = obj.form
  start_hr = eval('f.start_hr'+objN); 
  start_min = eval('f.start_min'+objN)
  start_time = eval('f.start_time'+objN)
  end_hr = eval('f.end_hr'+objN)
  end_min = eval('f.end_min'+objN)
  end_time = eval('f.end_time'+objN)
  break_hr = eval('f.break_hr'+objN)
  break_min = eval('f.break_min'+objN)
4

0 回答 0