只是小人物

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年10月8日

摘要: 最近在写一个页面,在出了ie6外的所有浏览器中都正常(ie7,8,9, firefox, chrome), IE6下提示 “无法设置selected属性。未指明的错误”。后来发现是jquery 在 ie6 下操作 select控件有BUG.我程序中是这样使用的:$("#genre").val(0);改成:setTimeout(function(){ $("#genre").val(0); },1);就可以了.原因是:Note that the error will only occur if you call appendChild, then ask 阅读全文
posted @ 2012-10-08 16:40 只是小人物 阅读(240) 评论(0) 推荐(0) 编辑