|
如下的程序
$.ajax({
"type" : "post",
"async" : false,
"data" : {
"username" : userData.name
"password" : userData.pwd,
"usertype" : "gongcheng"
// POS提交密码字段
},
"dataType" : "json",
"url" : weburl,
"success" : function(data) {
if (data['code'] === 0) { // php返回0,代表后端程序成功返回查询结果
//justep.Shell.user.set($.trim(nameInput));// 登录成功,保存用户信息
justep.Shell.user.set(data.rows.userId);//保存用户id
justep.Shell.company.set(data.rows.parentId);//保存用户企业ID
alert(justep.Shell.company.get());
从后台校验用户名和密码,同时返回一些用户相关信息,在调试时发现语句执行到alert(justep.Shell.company.get())wex5默认的Chrome浏览器就会陷入死锁状态,长时间卡死不动,这是为什么?换用console.log()可以正常输出。
|
|