【问题标题】:Why console.log throws an error when used inside a Web Worker in firefox?为什么console.log在firefox的Web Worker中使用时会抛出错误?
【发布时间】:2014-03-03 14:47:41
【问题描述】:

当我使用 console.log 从 web worker 将一些日志写入浏览器时,它在 Chrome 和 IE 11 中没有问题,但在 Firefox 中没有问题。这背后有什么原因吗?或者我应该为网络工作者使用不同类型的日志记录?

【问题讨论】:

    标签: firefox web-worker console.log


    【解决方案1】:

    第一个支持 console 的 Firefox 版本是 Firefox 29,将于 4 月下旬发布。

    不幸的是,console 仍然没有规范,因此它在不同浏览器中的可用位置和工作方式的表现截然不同。

    【讨论】:

      猜你喜欢
      • 2019-08-28
      • 1970-01-01
      • 1970-01-01
      • 2020-10-19
      • 1970-01-01
      • 1970-01-01
      • 2017-05-26
      • 2017-04-10
      • 1970-01-01
      相关资源
      最近更新 更多