我使用pure.js 1.29(PURE Unobtrusive Rendering Engine for HTML)作为我的排序/分页/过滤的js模板语言。出于某种原因,当我尝试页面时,IE 9崩溃了。 IE 7,8,FF,Chrome都可以正常渲染。
答案 0 :(得分:0)
它在IE 9.第362行pure.js中引起无限循环:
ie = attValue.match(/#\{[^\}]*\}/);
if (!ie && attValue !== '') {attValues.push(attValue);}}}
即返回'undefined'导致循环。所以用以下代替:
if (typeof ie.lastIndex == 'undefined'){
ie = false;}else{
ie = attValue.match(/#\[^\}]*\}/);}
if (!ie && attValue !== '') {attValues.push(attValue);}}}