layer.open弹出窗口后在子页面修改弹窗的title

在子页面修改layer.open弹窗的title,代码如下:

var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
parent.layer.title('新标题。。', index)  //再改变当前层的标题

done!

原文地址:https://www.cnblogs.com/zqifa/p/layer-open-title.html