javascript - 使用 then() 进行 Arangodbjs 查询在 IE11 上不起作用

标签 javascript promise arangodb

我按照Arangodbjs的默认示例进行操作,似乎在不支持Promises的浏览器中,这个示例会失败。我们如何解决这个问题?

db.query(queryString).then()

最佳答案

来自the documentation :

If you want to use promises in environments that don't provide the global Promise constructor, use a promise polyfill like es6-promise or inject a ES6-compatible promise implementation like bluebird into the global scope.

关于javascript - 使用 then() 进行 Arangodbjs 查询在 IE11 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39662386/

相关文章:

javascript - Emberjs linkTo 助手不加载模型

javascript - catch 中的请求- promise 堆栈跟踪

java - ArangoDB 和 velocypack,使用不可变类作为 dtos

arangodb - 如何查找重复文件?

javascript - Json数据计算并转html

javascript - 如何使用 fetch 测试 api 调用

javascript - 如何使用 JavaScript(最好使用 MooTools 1.2)获取文件的大小?

javascript - 我可以用 bluebird Promises 提前打破链条吗?

JavaScript 串行 Promise 与 setTimeout

arangodb - 使用 AQL 变量,例如用于计数(LET sum = sum + 1)