layer 弹窗嵌入iframe,子页面中元素怎么实现点击关闭layer弹窗?

a页面js有如下代码:

layer.open({
    type:2,
    area:['580px','320px'],
    content:'test.html'
})

在test.html中有个#test的button,怎么实现点击这个button关闭弹层?

阅读 5.1k
1 个回答

iframe通信/跨域通信。百度查查。

推荐问题