javascript - PouchDB 无法在 IE8 中运行

标签 javascript internet-explorer-8 local-storage pouchdb es5-shim

我正在 IE8 中测试 PouchDB 应用程序,但出现以下错误。我已将 pouchdb.localstorage.js 和 es5.shim.js 文件包含在 index.html 中。

您可以在下面找到错误:

  1. 下一行的预期标识符、字符串或数字 (pouchdb.localstorge.js):

Line no. 11019: , try: [

  • 以下行的预期标识符(main.js - 本地 js 文件):
  • }).catch(function (err) { console.log('Unable to insert into DB. Error: ' + err.name + ' - ' + err.message); });

    如何解决这些问题?

    最佳答案

    这是一个错误。请在 Github 上提出问题,我们会进行调查。看来问题是我们需要 es3ify 源文件来转义“try”之类的关键字。

    关于javascript - PouchDB 无法在 IE8 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29414000/

    相关文章:

    javascript - 循环setInterval函数

    css - 我有一个图形在 IE 8 和 IE 9 中的自定义 Wordpress 主题中没有正确排列

    javascript - 如何检测 IE8 并显示页面或警报

    unit-testing - Vue JS - 单元测试 - 未定义本地存储

    javascript - 如何删除数据表中本地存储中表中的特定行

    javascript - 使用 JS 访问 HTML 数据属性,而不使用 .getelementbyid?

    javascript - 为什么 requirejs 试图将 '.js' 附加到使用 !text 插件加载的 .jst 模板文件?

    Javascript Affix 不是函数

    javascript - IE JS 类型错误 : Object does not support this property or method

    google-chrome - 浏览器扩展 - 维护跨多个域的登录身份验证 session