51Testing软件测试论坛
标题:
selenium获取layer.msg返回值
[打印本页]
作者:
353884277
时间:
2019-12-2 10:55
标题:
selenium获取layer.msg返回值
本帖最后由 353884277 于 2019-12-2 10:59 编辑
$.ajax({
type: "POST",
async: false,
url: '/private/loginCheck',
data: formData,
success: function(msg)
{
if (msg == "S_00000")
{
//$("#ewmLoginImg").html('<img src="$!base/themes/images/loading3.gif" class="imagess">');
// $("#ewmdenglSpan").html('正在登录..');
layer.msg("登录成功", {icon: 1, time: 1000})
window.location.href = '/private/default';
} else {
top.layer.msg(msg + '!', {icon: 4, time: 1000});
}
},
error: function()
{
layer.msg('系统异常', {icon: 5, time: 1000});
}
});怎么获取登陆成功的信息呢,求解答
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2