我有一个带有此 url 的网站集合:
https://directv2.altran.com/com/buhb/
(列表位于此处:)
https://directv2.altran.com/com/buhb/Lists/
以及我想在此网站集合中的 default.aspx 上放入 ContentWebEditor-WebPart 的脚本:
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery.ui.core.js"></script>
<script src="js/jquery.ui.effect.js"></script>
<script src="js/jquery.SPServices-2013.01.js"></script>
<ul id="tasksUL">
<li>First Item</li>
</ul>
<script type="text/javascript">
$(document).ready(function() {
$().SPServices({
operation: "GetListItems",
webURL: "Lists/",
listName: "Announcements",
async: true,
completefunc: function (xData, Status) {
console.log($(xData.responseXML));
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var liHtml = "<li>" + $(this).attr("ows_Title") + "</li>";
$("#tasksUL").append(liHtml);
});
}
});
});
</script>
我的问题是,我没有从这个列表中得到任何项目。首先我想,我的 webURL 不正确。但我觉得还可以。
这是 FireFox 控制台告诉我的关于这个主题的内容:
[10:50:36.567] GET https://directv2.altran.com/com/buhb/default.aspx [HTTP/1.1 200 OK 996ms] [10:50:37.274] GET https://directv2.altran.com /_layouts/1033/styles/core.css?rev=5msmprmeONfN6lJ3wtbAlA%3D%3D [HTTP/1.1 304 未修改 186ms] [10:50:37.275] GET https://directv2.altran.com/_layouts/1033/init .js?rev=SKi7C%2FTrsh1U%2FCnIwkB9Ag%3D%3D [HTTP/1.1 401 未授权 296ms] [10:50:37.276] GET https://directv2.altran.com/_layouts/portal.js?rev=cRI8b5r5N% 2BkLhIuWR03ICg%3D%3D [HTTP/1.1 304 未修改 287ms] [10:50:37.278] GET https://directv2.altran.com/_layouts/1033/non_ie.js?rev=yfNry4hY0Gwa%2FPDNGrqXVg%3D%3D [ HTTP/1.1 304 未修改 250 毫秒] [10:50:37.280] GET https://directv2.altran.com/WebResource.axd?d=xIUuOuE98ByfhEVw86s2-wsvSC23O-MG2j2RCiSYrBW3eENvird3FGtTl7n5Ey8MA6YczOwHqe-nF_MjkubOu-Fs9YM1&t=634208849469717278 [HTTP/1.1 304 Not Modified 437ms] [10:50:37.281] GET https://directv2. altran.com/WebResource.axd?d=coyRyDekjahDPLQl45NQFykt1JFYYy3biV8NJQ0qsgkE-xbjFHLfY0XzXI4lou9RbTZ-LhJvLTejwoR3UsTN9S3AWkk1&t=634208849469717278 [HTTP/1.1 304 Not Modified 438ms] [10:50:37.478] GET https://directv2.altran.com/com/buhb/js/ jquery-1.9.1.js [HTTP/1.1 304 未修改 222ms] [10:50:37.480] GET https://directv2.altran.com/com/buhb/js/jquery.ui.core.js [HTTP/ 1.1 304 未修改 232ms] [10:50:37.481] 获取 https://directv2.altran.com/com/buhb/js/jquery.ui.effect.js[HTTP/1.1 304 未修改 230 毫秒] [10:50:37.482] GET https://directv2.altran.com/com/buhb/js/jquery.SPServices-2013.01.js [HTTP/1.1 401 未经授权 240 毫秒] [10 :50:37.593] GET https://directv2.altran.com/_layouts/1033/init.js?rev=SKi7C%2FTrsh1U%2FCnIwkB9Ag%3D%3D [HTTP/1.1 401 未授权 324ms] [10:50:37.597]获取 https://directv2.altran.com/_layouts/1033/core.js?rev=mHKsOQ0iU3Q5jdm9OZNDdg%3D%3D [HTTP/1.1 401 未经授权 799ms] [10:50:37.599] 获取 https://directv2.altran。 com/_layouts/1033/search.js?rev=yqBjpvg%2Foi3KG5XVf%2FStmA%3D%3D [HTTP/1.1 304 未修改 798ms] [10:50:37.782] GET https://directv2.altran.com/com/ buhb/js/jquery.SPServices-2013.01.js [HTTP/1.1 401 未授权 617 毫秒] [10:50:37.919] GET https://directv2.altran.com/_layouts/1033/init.js?rev=SKi7C%2FTrsh1U%2FCnIwkB9Ag%3D%3D [HTTP/1.1 304未修改 475ms] [10:50:38.493] GET https://directv2.altran.com/com/buhb/js/jquery.SPServices-2013.01.js [HTTP/1.1 304 未修改 655ms] [10:50:38.494 ] GET https://directv2.altran.com/_layouts/1033/core.js?rev=mHKsOQ0iU3Q5jdm9OZNDdg%3D%3D [HTTP/1.1 401 未授权 649ms] [10:50:38.495] GET https://ssl.google -analytics.com/ga.js [HTTP/1.1 304 未修改 533 毫秒] [10:50:38.495] GET https://directv2.altran.com/_layouts/images/blank.gif [HTTP/1.1 304 未修改 538 毫秒] [10:50:38.495] 获取 https://directv2.altran.com/_layouts/images/menudark.gif [HTTP/1.1 304 未修改 536 毫秒] [10:50:38.496] 获取 https://directv2.altran.com/_layouts/images/helpicon。 gif [HTTP/1.1 304 未修改 536ms] [10:50:38.496] GET https://directv2.altran.com/com/buhb/FormServerTemplates/logo_altran.png [HTTP/1.1 304 未修改 539ms] [10:50 :38.497] GET https://directv2.altran.com/_layouts/images/gosearch.gif [HTTP/1.1 304 未修改 830ms] [10:50:38.497] GET https://directv2.altran.com/_layouts/ images/whitearrow.gif [HTTP/1.1 304 未修改 870 毫秒] [10:50:38.498] 获取 https://directv2.altran.com/_layouts/images/recycbin.gif[HTTP/1.1 304 未修改 880 毫秒] [10:50:38.499] GET https://directv2.altran.com/_layouts/images/siteTitleBKGD.gif [HTTP/1.1 304 未修改 881 毫秒] [10:50:38.499]获取 https://directv2.altran.com/_layouts/images/topnavselected.gif [HTTP/1.1 304 未修改 902ms] [10:50:38.500] 获取 https://directv2.altran.com/_layouts/images/topnavunselected .gif [HTTP/1.1 304 未修改 1008 毫秒] [10:50:38.500] GET https://directv2.altran.com/_layouts/images/siteactionsmenugrad.gif [HTTP/1.1 304 未修改 1021 毫秒] [10:50: 38.501] 获取 https://directv2.altran.com/_layouts/images/pageTitleBKGD.gif [HTTP/1.1 304 未修改 1021 毫秒] [10:50:38.501] 获取 https://directv2.altran.com/_layouts/images/topshape.jpg [HTTP/1.1 304 未修改 1039 毫秒] [10:50:38.502] 获取 https://directv2.altran.com/_layouts/images/navshape。 jpg [HTTP/1.1 304 未修改 1039 毫秒] [10:50:38.502] GET https://directv2.altran.com/_layouts/images/quickLaunchHeader.gif [HTTP/1.1 304 未修改 1128 毫秒] [10:50:39.121 ] GET https://directv2.altran.com/_layouts/1033/core.js?rev=mHKsOQ0iU3Q5jdm9OZNDdg%3D%3D [HTTP/1.1 304 未修改 345ms] [10:50:39.167] GET https://ssl.google-analytics.com/__utm.gif?utmwv=5.4.3&utms=4&utmn=1908043118&utmhn=directv2.altran.com&utmcs=UTF-8&utmsr=1600x900&utmvp=1600x412&utmsc=24-bit&utmul=de-de&utmje=1&utmfl= 11.7%20r700&utmdt=Home%20-%20BU%20Holger%20Bartels&utmhid=1021575290&utmr=-&utmp=%2Fcom%2Fbuhb%2Fdefault.aspx&utmht=1373446239026&utmac=UA-27185626-1&utmcc=__utma%3D124039967.1382262210.1373437685.1373437685.1373446038.2%3B%2B__utmz %3D124039967.1373437685.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmu=q~ [HTTP/1.1 200 OK 285ms] [10:50:39.168] GET https: //directv2.altran.com/_layouts/images/Menu1.gif [HTTP/1.1 304 未修改 450ms] [10:50:39.168] GET https://directv2.altran.com/com/buhb/js/jquery- 1.9.1.js[HTTP/1.1 304 未修改 311 毫秒] [10:50:39.169] GET https://directv2.altran.com/com/buhb/icons/icons.png [HTTP/1.1 304 未修改 500 毫秒] [10:50: 39.591] 获取 https://directv2.altran.com/com/buhb/js/jquery.ui.core.js [HTTP/1.1 304 未修改 144 毫秒] [10:50:39.736] 获取 https://directv2.altran .com/com/buhb/js/jquery.ui.effect.js [HTTP/1.1 304 未修改 165ms] [10:50:39.939] GET https://directv2.altran.com/com/buhb/js/jquery .SPServices-2013.01.js [HTTP/1.1 304 未修改 562ms] [10:50:40.686] GET https://directv2.altran.com/_layouts/images/pagebackgrad.gif [HTTP/1.1 304 未修改 752ms] [ 10:50:40.686]发布 https://directv2.altran.com/com/buhb/Lists/_vti_bin/Lists.asmx [HTTP/1.1 404 Not Found 765ms] [10:50:41.401] [object Object]
任何人都可以帮忙吗?