ajax语法
$.ajax({ type: 'POST', url: url, dataType: 'json', data: { contacts: contacts, mobile: mobile, content: content, checkcode: checkcode }, success: function(response, status) { //成功操作 }, error: function(xhr, status, error) {
//失败操作 alert('网络异常,请稍后重试'); } });