0

我使用 pure.js 1.29 (PURE Unobtrusive Rendering Engine for HTML) 作为我的排序/分页/过滤的 js 模板语言。出于某种原因,当我尝试该页面时,IE 9 崩溃了。IE 7、8、FF、Chrome 都可以正常渲染。

4

1 回答 1

0

它导致 IE 9 中的无限循环。 pure.js 的第 362 行:

ie = attValue.match(/#\{[^\}]*\}/);
if (!ie && attValue !== '') {attValues.push(attValue);}}}

即返回导致循环的“未定义”。所以用下面的替换:

if (typeof ie.lastIndex == 'undefined'){
ie = false;}else{
ie = attValue.match(/#\[^\}]*\}/);}
if (!ie && attValue !== '') {attValues.push(attValue);}}}
于 2013-02-27T19:41:10.633 回答