首页 > attempt to run compile-and-go script on a cleared scope 错误

attempt to run compile-and-go script on a cleared scope 错误

ff4下报出的,不影响功能,但是jquery会报一个内部错误

------------------产生错误代码------------------------
jQuery("#"+_this.id,parent.document).bind("click",_this.cutoverTab);
------------------产生错误代码------------------------

不知道是不是,不能绑定父页面的元素


你应该调用父框架的jquery来操作父框架的元素,比如这样

parent.$('#' + this.id).click(this.cutoverTab);

当然,在父框架也要引入jquery

【热门文章】
【热门文章】