当多个多个swal弹框套用时,最底层的swal的function()方法中的href无法使用。
swal({
title: "",
text: "<input type='checkbox' name='ChildInherit' id='ChildInherit' checked='checked'> 同时设置子部门",
html: true,
type: "info"
}, function(){
var ChildInherit="N";
if( document.getElementById("ChildInherit").checked)
{
ChildInherit="Y";
}
var postData={
GroupID:GroupID,
ChildInherit:ChildInherit
}
$http.post('/xxx/xx/xx', postData).success(function (data) {
if(data=="T"){
swal({
title: "修改成功",