我收到运行时 JS 错误,例如:“意外调用方法或属性”。这是代码:
var comboInput = document.getElementById("Combo");
var option1 = document.createElement("option");
option1.value = "-1";
option1.innerHTML = "--Select--";
comboInput.appendChild(option1); //At this line debugger breaks and
// throws the above error
我经历了一些关于这个问题的类似问题,但仍然没有得到解决方案。
请帮忙..谢谢您的建议...