//点击确定后执行方法
swal({
title: msg.retInfo,
text: "",
type: "success",
icon: "success",
button: "确定",
}, function () {
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
parent.layer.close(index);
});
简便提示
1 swal({ 2 type: "warning", 3 title: "与设置的密码不一致" 4 });
确定方法后执行方法
swal({ title: msg.retInfo, text: "", type: "success", icon: "success", button: "确定", }, function () { var index = parent.layer.getFrameIndex(window.name); //获取窗口索引 parent.layer.close(index); });