我在加载页面时调用了以下代码:
var resourceRequest = new WLResourceRequest(
"adapters/adapter-name/rest/init/" + timeStamp,
WLResourceRequest.GET
);
然而,它在我的控制台中返回错误:
获取http://localhost:8080/myservice/deleteme/mediaId/ 404 (未找到)
虽然此代码有效:
function wlEnvInit() {
console.log("CONNECTING 1111");
WL.Client.connect({c
onSuccess: function(){
console.log("CONNECTED 2222");
},
onFailure: function(error) {
console.log("ERROR IN CONNECTION");
console.log(error);
}
});
}
如何解决此问题?
答案 0 :(得分:0)
示例呼叫: