神不在的星期二
jquery json 兼容各种语言function loginin(){ $.blockUI({message:"<div style='padding:10px 0'>正在提交请求,请稍候...</div>"}); var username = $.trim($("#account_name").val()); var pasw = $.trim($("#password").val()); var remoteUrl = "login.aspx?username=" + username + "&password=" + encodeURIComponent(pasw) + "&t=" + (new Date()).getTime(); $.getJSON(remoteUrl,function(data){ if (data.sucess != "True"){ if(data.message) location.href = "message.aspx?e=" + data.message ; }else{ location.href="main.aspx"; } })