以下方案无效。如果我将success: successCallback
替换为success:function(data){//any code}
然后它正常工作。
请帮我解决这个问题。
greet.js调用此函数
RestDataProxy.callService(params,"POST",function(data) {},"GreetCustomerSearchHelper.errorResp");
Restdataproxy.js
callService: function(params,method, successCallback, errorCallback){
$.ajax({
url:"http://localhost:8091/IndividualCustomerSearch",
type: method,
context: this,
contentType: "application/json",
dataType: "json",
crossDomain:true,
success: successCallback,
error: errorCallback});
}