作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个奇怪的错误,AngularJS 似乎没有解析/编译 mustache 并将其绑定(bind)到网站的第一次加载的变量(见屏幕截图)。如果我进入开发模式并刷新页面,问题就会消失;因此很难调试,因为我看不到错误。
网站的实时版本在 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/
我是一名优秀的程序员,十分优秀!