|
发表于 2015-2-9 17:06:50
|
显示全部楼层
访问servlet不是这样访问的
$.ajax({
"type" : "post",
"dataType" : "json",
"contentType" : "application/json",
"url" : this.BASE_URL + this.SAVE_URL,
"data" : JSON.stringify(ajaxData),
"success" : function(json) {
for (var i = 0, len = saves.length; i < len; i++) {
var save = saves;
save.data.applyUpdates();
}
if (success && $.isFunction(success)) {
success.call(this, json);
}
},
"error" : error ? error : this.errorProcesser
});
baasClient.BASE_URL = "/x5baas";
baasClient.SAVE_URL = "/commonSave";
this.BASE_URL + this.SAVE_URL 前面是应用名,后面是servlet的名 |
|