标签:
[javascript] view plain copy print?在CODE上查看代码片派生到我的代码片
jQuery.ajax({
url: path,
type: "POST",
dataType:‘json‘,
data:{word : ‘a‘},
success:function(json) {
var isSuccess = json.isSuccess;
//alert(json.content.length);
},
error:function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest.status); // 200
extStatus); // parsererror
alert(errorThrown); // SyntaxError: Unexpected end of input
}
});
标签:
原文地址:http://www.cnblogs.com/runningding/p/5906276.html