子页面获取父类页面的jQuery easyUI对象问题

来源:互联网 发布:网红王逗逗的淘宝店铺 编辑:程序博客网 时间:2024/06/03 14:28

在iframe的页面中,我试图通过调用$(parent.document).find('#win1').window('close')或$('#win1', window.parent.document)方法去关闭window窗口,但是报js错:$.data...options无效。解决方法:parent.$('#win').window('close'); 或window.parent.$('win').window('close');在iframe的页面中,我试图通过调用$(parent.document).find('#win').window('close')方法去关闭window窗口,但是报js错:$.data...options无效。解决方法:parent.$('#win1').window('close'); 或window.parent.$('#win1').window('close');


类推 

父类页面中easyUI的对象

其他元素,必须 window.parent.$(selected).类型(方法名称);

0 0
原创粉丝点击