search

Home  >  Q&A  >  body text

javascript - The website is https protocol and the src inside the iframe is http protocol and cannot be displayed. Is there any other way to replace the iframe?

The website is under https protocol and the src inside the iframe is under http protocol and cannot be displayed. Is there any other way to replace the iframe?

高洛峰高洛峰2736 days ago1093

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-31 10:43:49

    If you have to make the page asynchronous, you can try something called $.load. It can directly load HTML resources to a certain DOM node and should be migrated from your project. The cost is very low.

    $.load("#iframe_box","/index.html");

    reply
    0
  • Cancelreply