0
我可以得到返回的json字符串解析与$ .post(),但不是$ .ajax()。
{"result": "success", "id": "1"}
我可以得到返回的json字符串解析与$ .post(),但不是$ .ajax()。
{"result": "success", "id": "1"}
没有对后实际的代码是:
post: function(url, data, callback, type) {
// shift arguments if data argument was omited
if (jQuery.isFunction(data)) {
type = type || callback;
callback = data;
data = {};
}
return jQuery.ajax({
type: "POST",
url: url,
data: data,
success: callback,
dataType: type
});
},
的文档说,这简直是$就
请出示你的代码的缩写。 – 2010-07-06 19:52:48