javascript - alfresco aikau 中的 "remote"对象是什么?

标签 javascript dojo alfresco aikau

Here是有关 alfersco CRUD 服务的示例。他们使用:

remote.call("/slingshot/datalists/lists/site/test/dataLists");

发出http请求。我已经检查了 aikau 源代码,但它只包含像 remote.connectremote.call 这样的调用,而且定义的 aikau 模块不包含来自的显式依赖项这个物体。那么什么是远程对象?

最佳答案

它基本上是一个对外部 URL 进行 GET/POST/PUT/DELETE 的“请求”模块。

它有以下方法:

.post(uri, body)—POSTs content to the given URI

.post(uri, body,contentType)—POSTs content of the specified type to the given URI

.get(uri)—GETs content from the given URI

.put(uri, body)—PUTs content to the given URI

.put(uri, body, contentType)— PUTs content of the specified type to the given URI

.delete(uri)—Invokes a URI as a DELETE request

See the full documentation here

关于javascript - alfresco aikau 中的 "remote"对象是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40956979/

相关文章:

javascript - 将 'ng-include' 添加到应用程序后,Angular $httpProvider 拦截器停止为 "UI Grid"工作

javascript - 道场 : Accordion open and close

java - 户外 hibernate 集成

javascript - 在 Google Chrome 中,如何使用父窗口中的 javascript 将现有的弹出窗口置于最前面?

javascript - TSC 正在根据 tsconfig.json 文件的方向编译 node_modules 和类型声明文件

javascript - dojo 解析器和使用 ArcGIS JS API 的 TypeError

javascript - dojo dgrid 或 slick Grid 中的批量更新支持不可用

java - 在 Eclipse 中构建 Alfresco CE 5.0a 时出错

tomcat - 无法登录到 alfresco explorer 或 alfresco share

javascript - alert() 在 WKWebview 中不起作用 evaluateJavaScript()