写了一个js函数
document.getElementById(id).options[document.getElementById(id).selectedIndex].value
运行报“对象不支持属性或方法”
如果在报错行前随便alert一下,就可以正常运行
请高手指教