Internet explorer Imtech.IE中的寻呼机问题

Internet explorer Imtech.IE中的寻呼机问题,internet-explorer,Internet Explorer,我使用了来自的客户端分页代码 这段代码在firefox中运行良好,但在IE中显示为空白div。这是我的分页代码 this.showPage = function(page) { this.currentPage = page; var html = ''; this.paragraphs.slice((page-1) * this.paragraphsPerPage, ((page-1)*this.paragraphsPerPage) + this.pa

我使用了来自的客户端分页代码 这段代码在firefox中运行良好,但在IE中显示为空白div。这是我的分页代码

 this.showPage = function(page) {
    this.currentPage = page;
    var html = '';

   this.paragraphs.slice((page-1) * this.paragraphsPerPage,
        ((page-1)*this.paragraphsPerPage) + this.paragraphsPerPage).each(function() {
    // here I am getting $(this).html() blank in IE when I click on pagination links        
        html += "<div class='main_result_container'>" + $(this).html() + "</div>";

   });
this.showPage=函数(第页){
this.currentPage=第页;
var html='';
本.段落.切片((第1页)*本.段落,
((第1页)*此.段落页面)+此.段落页面)。每个(函数(){
//在这里,当我单击分页链接时,IE中的$(this).html()为空
html++=“”+$(this.html()+“”);
});
请帮忙


提前感谢。

以下是我对“imtech_pager.js”所做的更改,以使其在IE中工作:

  • 我创建了一个空对象来存储段落项:

    var pageItems=[];

  • 然后我循环遍历所有段落元素并存储 它们在“pageItems”对象中:

    $('p.z')。每个(函数(即,e){ 如果($(this.html().length>0) pageItems.push($(this.html()); });

  • 最后,在“this.showPage”函数(第26行附近)中,将“elem.innerHTML”(第23行附近)替换为“pageItems[i]

  • 这花了我很长时间去调试,非常烦人,最重要的是我在SharePoint中实现了这一点。无论如何,希望这能有所帮助