简体   繁体   English

handlebars.js未在IE9中呈现模板

[英]handlebars.js is not rendering template in IE9

I'm working on a simple site using handlebars.js. 我正在使用handlebars.js在一个简单的网站上工作。 It works just well in FF, Chrome, IE11 and Mobile Browsers. 它在FF,Chrome,IE11和移动浏览器中运行良好。 However, in IE9 the template is not gonna be rendered. 但是,在IE9中不会渲染模板。 Does anybody have an idea what the problem could be? 有谁知道可能是什么问题?

here's the site: http://dev.thomasveit.com/zuzuegler 这是网站: http : //dev.thomasveit.com/zuzuegler

any help is very appreciated! 任何帮助都非常感谢!

Quickly looking at your code reveals you use HTML5 tags, such as Footer or even more. 快速查看您的代码会发现您使用HTML5标签,例如Footer甚至更多。 IE9 unfortunately is not able to render HTML5 tags. 不幸的是,IE9无法呈现HTML5标签。

There are many ways to fix your problem... best IMO is to try using Modernizr 有很多方法可以解决您的问题...最好的IMO是尝试使用Modernizr

Just include it in your html file, and your problem will be solved. 只要将其包含在您的html文件中,您的问题就会得到解决。

I just figured it out. 我只是想通了。 The problem was indeed the html5shim for IE9. 问题确实是IE9的html5shim。 I just removed it and now it works fine. 我刚刚将其删除,现在可以正常工作了。

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

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