摘要: jQuery中有一个focus()方法能设置对象的焦点,在1.7以下的版本中,不管对象是不是disabed状态,这个方法都不会报错(只是当disabled时,设置焦点的代码无效),但在1.7版本中,如果对象是disabled状态,这时调用focus()方法时,会直接报异常:Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.意思是:不可见或不可用的元素无法获取焦点。(特别提一下:IE9很NB,能自动 阅读全文
posted @ 2012-03-17 16:18 菩提树下的杨过 阅读(2599) 评论(0) 推荐(0) 编辑