当使用IE8,IE9时,我正在调试Meteor应用程序的问题。 使用Chrome或Safari时我没有这个问题: 在Ie错误:
如果我在'if'中包装我文件中的所有模板: if(Meteor.isClient){my Template code}; 或者如果是服务器代码: if(Meteor.isServer){my Template code}; 它在ie9中工作,但在ie8中不起作用。 我认为Meteor在其模板中创建我的模板,例如:
我的代码: if(Meteor.isClient){ Template.default.rendered = function(){ $(window).resize(function(){ myFunction的(); }); } }
流星包裹我的模板,在ie8中我可以看到我的模板和这个:
(function () {
Template.__define__("default", (function () {
var self = this;
var template = this;
return [ Spacebars.include(self.lookupTemplate("navbar")), "\n\n ", HTML.DIV({
"class": "content-wrapper"
}, "\n ", HTML.DIV({
"class": "container"
}, "\n\n ", Spacebars.include(self.lookupTemplate("yield")), "\n\n "), "\n "), "\n\n ", Spacebars.include(self.lookupTemplate("footer")) ];
}));
})();
在应用程序中使用库iron-router,nvd3js,bootstrap-3。可能是他们的错误,但认为这是Meteors的错误。我使用Meteor 0.8.0。 如果我的流星应用程序可以使用ie8-9 - 请说,我!如果可以 - 说怎么样?我会非常感激的!
答案 0 :(得分:0)
当其他一些错误导致Meteor Javascript的其余部分无法正确加载时,通常会发生这种情况。您应该检查在控制台中打印出的第一个错误,这几乎总是罪魁祸首。
如果您可以使用整个错误日志更新您的问题,我可以使用诊断更新我的答案。