1
1
123456789101112131415161718192021/*** ajax post提交* @param url* @param param* @param datat 为html,json,text* @param callback回调函数* @return*/function sendAjax(url, param, datat, callback) {$.ajax({type: "post",url: url,data: param,dataType: datat,success: callback,error: function() {ClosetoastLoading();errorTip();}});}
直接调用即可