Cloudant 使用 JavaScript 在服务器上设计文档。这是map+reduce 和更新处理程序。但我没有看到它提到它可以在当前服务器上使用什么版本
支持ES6吗?我们可以调用哪个图书馆?我们可以调用数学和日期吗?
我们可以进行http调用吗?与 Node.js 兼容吗?
我想在 updatehandler 中调用 http,假设我使用 facebook auth 并让用户将访问 token 发送到我的数据库,以便我可以从中获取 userID。可能吗?
最佳答案
已将此问题发送至 support@cloudant.com(实际上,我在发布此问题之前已向 cloudant 发送了问题,但刚刚得到答案)
Cloudant uses the SpiderMonkey 1.8.5 engine for Javascript https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/1.8.5
It implements ES-5 (ECMA 262 5th Edition), not ES 6.
The Cloudant view server cannot make outbound HTTP requests (or indeed do any kind of file or socket activity).
关于javascript - cloudant 服务器上的版本和库支持是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38390449/