Jquery 在本地sitecollection中调用office 365视频rest api(GET)时,获取404资源发现问题
在一个内容编辑器Web部件上创建并调用Jquery 在本地sitecollection中调用office 365视频rest api(GET)时,获取404资源发现问题,jquery,ajax,sharepoint-2013,office365,office365api,Jquery,Ajax,Sharepoint 2013,Office365,Office365api,在一个内容编辑器Web部件上创建并调用 _api/VideoService/Channels('channelId')/Videos 使用jqueryajax调用,得到404错误。下面是我的ajax代码 $.ajax({ type: 'GET', url: url, async: false, crossDomain: true, contentType: "application/json",
_api/VideoService/Channels('channelId')/Videos
使用jqueryajax调用,得到404错误。下面是我的ajax代码
$.ajax({
type: 'GET',
url: url,
async: false,
crossDomain: true,
contentType: "application/json",
dataType: 'jsonp',
success: function () {
alert("success");
},
error: function (err) {
alert(err.status + " (" + err.statusText + ")");
}
});
状态文本不可用foundhttp:///SitePages/url?callback=jQuery213020131733012385666_1441375274172&_=1441375274173 加载资源失败:服务器响应状态为404(未找到)