jquery ajax 參數講解網址: 點擊查看
$.ajax({ type: "post", url: "url", data: { "id": id }, async:true, // 異步請求 cache:false, // 設置為 false 將不緩存此頁面 dataType: 'json', // 返回對象 success: function(data) { console.log(data); }, error: function(data) { // 請求失敗函數 console.log(data); } })