var index=parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
parent.layer.closeAll();
var index = parent.layer.index; //获取当前弹层的索引号
parent.layer.close(index); //关闭当前弹层