gpt4 book ai didi

javascript - 除非在开发模式下,否则 AngularJS mustache 不会在 IE9 中加载

转载 作者:行者123 更新时间:2023-11-30 07:09:52 25 4
gpt4 key购买 nike

我有一个奇怪的错误,AngularJS 似乎没有解析/编译 mustache 并将其绑定(bind)到网站的第一次加载的变量(见屏幕截图)。如果我进入开发模式并刷新页面,问题就会消失;因此很难调试,因为我看不到错误。

enter image description here

网站的实时版本在 http://www.notable.ac 可用。

最佳答案

如果是控制台问题...

只需在 JS 的根目录中添加一个 stub :

//make sure console.log exists in ie.
window.console = window.console || {};
window.console.log = window.console.log || function(){};

关于javascript - 除非在开发模式下,否则 AngularJS mustache 不会在 IE9 中加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12811745/

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