我想阅读不同网站集的列表。有没有办法做到这一点?
答案 0 :(得分:4)
以下是使用SPServices JQuery 2014.01成功测试的示例:
$().SPServices({
operation: "GetListItems",
// Force sync so that we have the right values for the child column onchange trigger
async: false,
webURL: "/webs/sitecollection/site",
listName: "tst",
// Filter based on the currently selected parent column's value
// Only get the parent and child columns
CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",
// Override the default view rowlimit and get all appropriate rows
CAMLRowLimit: 0,
completefunc: function(xData, Status) {
window.alert(Status);
}
});