Home Forums Games202-高质量实时渲染 [作业0]浏览器兼容情况

Viewing 2 reply threads
  • Author
    Posts
    • #7871 Score: -1
      Dan
      Participant
      2 pts

      本次作业的 src/materials/Material.js 文件中的 Material 类使用了 ES6 的 private class field 语法。根据 MDN 相关页面显示,目前桌面浏览器中仅有 Chrome(>=74),Edge(>=79),Opera(>=62) 以及 Firefox Nightly 支持该语法。如有同学在浏览器控制台中看到类似 Uncaught SyntaxError: private fields are not currently supported 的报错,请酌情更换浏览器或升级浏览器版本。

      Browser compatibility

      This post has received 1 vote down.
      • This topic was modified 3 years, 8 months ago by Dan.
    • #13112 Score: 0
      xueyun
      Participant

      感谢大佬!
      (我这之前运行是纯黑的,在开发者模式下看报错是Material.js里第二行符号错误,查了很多地方都没有类似的情况,升级之后解决了,有类似情况的可以试试

    • #16842 Score: 0
      Sara_2222
      Participant

      Learn how to help your business thrive with our services! Visit http://helpware-email17.com/ and learn about our competencies in outsourcing and customer support. We offer customized solutions to help your company achieve outstanding results.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.