成功後則列印返回的資料,失敗則列印錯誤原因。 $.ajax({ ... 根據jQuery官方文件,ajax中error有三個引數,分別是jqXHR,textStatus,errorThrown。
確定! 回上一頁