$.ajax({
type : "POST",
url : postUrl,
data : data,
beforeSend : function(){
$('.'+type+'_watting').show();
errMsg.text(' 正在绑定..');
},
success : function(result){
console.log(result);
$('.'+type+'_watting').hide();
errMsg.text(result.err_msg);
if (result.result == 'false'){
$("#con_submit").hide();
}
else{
$("#con_submit").show();
}
}
});
beforeSend属性可实现此效果