0
$().SPServices({
operation: "UpdateListItems",
async: false,
batchCmd: "Update",
listName: "TestList",
ID: itemID,
valuepairs: [["Status", 'requested']],
completefunc: function(xData, Status) {
alert("completed");
itemRequested();
}
});
如果我改变batchCmd:“新建”,这部作品让我在我的列表中的新行的“状态”栏中的要求。然而,我想要的是更新已经存在与'请求'的行中的状态列。这里的代码没有达到完整的功能,但没有将请求添加到列表的任何地方。SPServices - JQuery的 - 呼叫更新列表项
也许你应该设置的方式来处理'completeFunc'通话以更具描述性的方式,如:http://sharepoint.stackexchange.com/questions/93256/proper-way-to-check-for-failed-spservices-call – Hackerman