按钮实现显示正在查询的效果:

来源:互联网 发布:螺旋箍筋的算法 编辑:程序博客网 时间:2024/05/22 11:53
function getTsrNumberList(){
$('#searchButton').val("正在查询中...").attr("disabled",true);
$.ajax({
  type:"pose",
  dataType:"json",
  url:"./branch.do?method=tsrNumberStatistics",
  data:initRequestStr + "&random=" + Math.random();
  complete:function(){
    $('#searchButton').val("查询").attr("disabled",false);
  }
  
  success:function(result){
  
  },
  error:function(result){
  
  }
});
}
原创粉丝点击