如果您使用带有分页器的Tablesorter Jquery插件,则在表上添加将不会显示任何数据。数据在那里,但是它是隐藏的。
我怀疑插件的浏览器功能检测方法无法处理IE11。
还有其他人遇到吗?
最佳答案
看来IE11的userAgent有问题。
解决方法是像这样更改clearTableBody函数(在jquery.tablesorter-2.0.3.js中工作):
this.clearTableBody = function (table) {
//if ($.browser.msie) {
function empty() {
while (this.firstChild) this.removeChild(this.firstChild);
}
empty.apply(table.tBodies[0]);
//} else {
// table.tBodies[0].innerHTML = "";
//}
};