1.后台使用@RequestController
2.Ajax限制dataType為 JSON
3.后台代碼無誤,正常增刪查改,但是前端一直進入error
4.在error中添加打印語句
console.log("1 異步調用返回失敗,XMLHttpResponse.readyState:"+XMLHttpResponse.readyState);
console.log("2 異步調用返回失敗,XMLHttpResponse.status:"+XMLHttpResponse.status);
console.log("3 異步調用返回失敗,textStatus:"+textStatus);
console.log("4 異步調用返回失敗,errorThrown:"+errorThrown);
打印:...Parse error
5.百度:格式錯誤
6.將datatype改為 "text" , 問題解決.
7.OVER
