jquery ajax提交表单时用进度条防重复提交

$.ajax({

url : requrl,

type : "post",

data : saveData,

beforeSend:function(){

$.messager.progress({

     title: 'test',

     msg: '正在提交',

     text:'',             //进度条上显示的内容,不写这个属性就是10%-20%这样的进度显示

     interval:300    //进度条变更的时候,默认为300ms

});

},

success : function(data) {

},

complete:function(){

$.messager.progress('close');

}

});

猜你喜欢

转载自chenqunhui.iteye.com/blog/2293743