如打开一个弹窗,点击返回按钮,退出当前弹窗
<button type="button" class="" onclick="back()" >返回</button>
function back(){
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
parent.layer.close(index);
}
如打开一个弹窗,点击返回按钮,退出当前弹窗
<button type="button" class="" onclick="back()" >返回</button>
function back(){
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
parent.layer.close(index);
}