search

Home  >  Q&A  >  body text

Infinite loading of iframe

I am taking the course of teacher PETER-ZHU and found that in the tp6 framework, there is an iframe page that will be loaded infinitelyQQ图片20200407004654.pngQQ图片20200407004726.pngQQ图片20200407004736.png

風1690 days ago1203

reply all(4)I'll reply

  • 風

    2020-04-07 07:50:43

    Could you please help me solve this problem

    reply
    0
  • 查无此人

    This should be a bug in the framework. I can't see the code for your left menu now, and I don't know the specific situation. You can use the js method on the left menu. After clicking, execute the event and change the src value of the iframe. That's it.

    查无此人 · 2020-04-07 10:32:35
    風

    Teacher, the value of src can be accessed separately. The only situation that cannot be solved is that the iframe page will keep loading. I dare not change the files in the H UI and keep them as they are. I looked for the files in JS if(!bStop){ creatIframe(href,title); min_titleList(); } else{ show_navLi.removeClass("active").eq(bStopIndex).addClass("active"); iframe_box.find(".show_iframe").hide().eq(bStopIndex).show().find("iframe").attr("src",href); } Didn't see the corresponding event

    · 2020-04-07 20:42:46
    風

    Do you have any corresponding tutorials that you can recommend so I can learn from them?

    · 2020-04-07 20:43:33
  • Cancelreply