下面是相同的代码,显示状态500的错误,在警报状态显示错误。让我知道如何做到这一点
var _query = ""+discussionTitle+""; alert(_query); $().SPServices({ operation: 'GetListItems', async: false, listName: '', CAMLQueryOptions: "", CAMLViewFields: "", CAMLQuery: _query, completefunc: function (xData, Status) { **alert(Status);** $(xData.responseXML).SPFilterNode("z:row").each(function() { alert("Hi"); var NewCategory=$(this).attr('Category'); alert(NewCategory); }); } });