JQ的ajax请求的封装 /* ajax post提交 url ,param ,datat为html,json,text ,callback回调函数 , return */ function jsonAjax(url, param, datat, callback) { $.ajax({ type: "post", url: url, cache: false, async: false, data: param, data
/* ajax post提交 url ,param ,datat为html,json,text ,callback回调函数 , return */ function jsonAjax(url, param, datat, callback) { $.ajax({ type: "post", url: url, cache: false, async: false, data: param, dataType: datat, success: callback, error: function () { alert("失败!"); } }); } jsonAjax("/Meeting/JoinMeeting", dataJson, "json", callBack); function callBack(){ }