简体   繁体   English

IE11 无法看到 JavaScript 函数

[英]IE11 unable to see JavaScript functions

In reference to JavaScript Functions Working Locally but not in Test deployment参考JavaScript 函数在本地工作但不在测试部署中

While I have the website functional for Chrome, not all of my users use Chrome.虽然我的网站可用于 Chrome,但并非所有用户都使用 Chrome。

Some still prefer (or are restricted to) IE11.有些人仍然更喜欢(或仅限于)IE11。 IE11, however, cannot execute the JavaScript functions, even when it posts the script for them in the DOM_Explorer and Debugger views.但是,IE11 无法执行 JavaScript 函数,即使它在 DOM_Explorer 和 Debugger 视图中为它们发布了脚本。

What can be done to force IE11 to recognize the JavaScript so that all my users can use the page correctly regardless of browser?如何强制 IE11 识别 JavaScript,以便我的所有用户无论浏览器如何都可以正确使用该页面?

Thanks to @JhWebDevGuy for showing me this: https://stackoverflow.com/a/48320394/11035837感谢@JhWebDevGuy 向我展示这个: https ://stackoverflow.com/a/48320394/11035837

This was the answer I needed.这就是我需要的答案。

IE11 doesn't support many of ES6 features. IE11 不支持许多 ES6 功能。 For example arrow functions .例如箭头函数 If you are using ES6, see this answer on the subject .如果您使用的是 ES6,请参阅有关该主题的答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM