IE9 Selectbox onchange 事件未正确触发
我有一个普通的Selectbox
<select id="areaSelectBox" onchange="javascript:checklistObj.CreateAreaFields(this)">
checklistObj
是一个面向对象的原型类,具有函数CreateAreaFields
。
Debug: Script block [dynmaic] Runtime Error in JScript. This Object doesn't support this Method... (Break, Continue, Ignore)...
请帮忙。
I have a normal Selectbox
<select id="areaSelectBox" onchange="javascript:checklistObj.CreateAreaFields(this)">
checklistObj
is a object oriented prototype class with the function CreateAreaFields
.
Debug: Script block [dynmaic] Runtime Error in JScript. This Object doesn't support this Method... (Break, Continue, Ignore)...
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
onchange 在 ie9 中对我来说工作得很好。你的功能出了问题。
onchange works fine for me in ie9. something is wrong with your function.
中的选项在 IE9 中不起作用
我发现如果
"Tools" --> 。 “兼容性视图设置”--> “在兼容性视图中显示所有网站”
或者
已选择
“在兼容性视图中显示 Intranet 站点”
。一旦我删除了这些,它就工作得很好。我通过使用 IE9 附带的“开发者工具”发现了这一点。按 F12 打开开发人员工具并观察“控制台”选项卡是否有错误。I found that this did not work in IE9 if the option in
"Tools" --> "Compatibility View Settings" --> "Display all websites in Compatibility View"
or
"Display intranet sites in Compatibility View"
was selected. Once I removed these it worked fine. I discovered this by using the "Developer Tools" that come with IE9. Press F12 to open Developer Tools and watch the "Console" tab for errors.