方法: var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); 直接在弹窗的页面方法里写入这两句即可