gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 06:03:17 24 4
gpt4 key购买 nike

我按照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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com