chaikm - 2020/12/16 8:55:19
<button type="button" class="btn btn-primary btn-lg col-xs-12 col-md-12 ui-pagePost" data-custom-params="url:'http://localhost:8080',callBack:'LoginSuccess',failCallBack:'FailCallBack',successMsg:''">登录</button>
function LoginSuccess()
{
layer.msg('登录成功...', {
icon: 16,
time: 200000, //200秒
shade: 0.01
});
SaveInfo();
var to = Request("");
top.location.href ="";
}
都不行额~
xiyou - 2020/12/16 8:57:31
你这代码自己写的?
chaikm - 2020/12/16 9:24:25
chaikm - 2020/12/16 9:47:30
回复 2楼xiyou的帖子改好了
function LoginSuccess()
{
layer.msg('登录成功...', {
icon: 16,
time: 200000, //200秒
shade: 0.01
});
SaveInfo();
var to = Request("to");
if (to == "") {
to="@Url.ActionUrl("Index","Default")";
}
location.href ="..//";
}