Here是有关 alfersco CRUD 服务的示例。他们使用:
remote.call("/slingshot/datalists/lists/site/test/dataLists");
发出http请求。我已经检查了 aikau 源代码,但它只包含像 remote.connect
或 remote.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
关于javascript - alfresco aikau 中的 "remote"对象是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40956979/