行:157
char:6
错误:缺少对象
代码:0
utl:http://localhost:3877/orders.aspx

解决方案 »

  1.   

    第157行就是var pLen = document.getElementById(prevName).selectedIndex;
         
      

  2.   

    根据你现在提供的信息,很可能是你的具体html中没有以prevName变量值为ID号的标签
      

  3.   

    你可以把它弹出来看看是不是个对象
    alert(document.getElementById(prevName))
    看看显示的是[object]
    还是undefined
      

  4.   

    显示的是[object] 
    突然想到了最前面的id号没有的,没有判断.郁闷,看到下面的有错误就不舒服,呵呵