<script type="text/javascript">
window.onload=function(){
$.get("http://localhost:8080/uaUserEx/islogin",function(data,status){
//async: false, //保持ajax同步发送请求,默认为异步
if(data=='0'){
location.href="login.html";
}else{
//alert("登录成功");
}
});
};
$(function(){
$("#submit").click(function(){。。。。。
这样写了,还是不行。有几率后台更新成功,前台没有提示框。
【 在 renjnet 的大作中提到: 】
: $.get放到windows.onload里。
: --
: 发自xsmth (iOS版)
--
FROM 117.66.163.*