在我的 Jquery 中,我使用 Ajax 并低于错误消息。
TypeError: $.ajax(...).done is not a function
[Break On This Error] ).success(function(response) {
我厌倦了使用成功而不是完成。但仍然得到相同的味精。
TypeError: $.ajax(...).success is not a function
[Break On This Error] ).success(function(response) {
下面提到了示例代码:
$(document).ready(function () {
alert('in get');
$.ajax({
data: {
'contentId': contentId,
'USER_ID': USER_ID,
'actionType': 'GETRATING',
'portletGuid': portletGuid
},
type: 'GET',
url: ajaxRatingServlet,
cache: false
}).success(function (response) {
getUserPreference(response);
});