“artdialog弹出层open页面iframe间数据传递”是什么意思?,实例解析:
页面中,调用artDialog插件的artDialog.open()方法打开iframeA.html,在iframeA.html页面中再调用artDialog.open()方法打开iframeB.html,点击iframeB.html页面内一链接,要将iframeB.html页面的数据传递到iframeA.html中,这就是上文所说的“artdialog弹出层open页面iframe间数据传递”,具体操作可看下面的示例图(
注意a页面标红文字的变化):

要实现实例中的“artdialog弹出层open页面iframe间数据传递”,这里涉及到2个问题要处理:
1、要传递的数据怎么保存,方便在各个Iframe页面中共享数据;
2、数据传递的时候,怎么指定往iframeA.html页面传递数据(即往哪个iframe页面传递数据);
问题一解决方法:
使用art.dialog.data()方法实现;
问题二解决方法:
调用artDialog.open()方法打开iframeA.html时,指定id属性,该属性可用来标识iframeA.html页面,写入数据时使用top.art.dialog.list["a"].iframe.contentDocument获取到iframeA页面的文档对象!
需要注意的是:
源码中的top.art.dialog.list的写法,
必须指定top,否则调用close()方法关闭artdialog弹出层时,artdialog会报“Uncaught TypeError: Cannot read property 'close' of undefined”错误提示,具体如下图:

另附:
源码示范页面