How do I load an HTML page in a
using JavaScript?

后端 未结 15 2232
醉话见心
醉话见心 2020-11-22 08:29

I want home.html to load in

15条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 08:55

    When using

    $("#content").load("content.html");
    

    Then remember that you can not "debug" in chrome locally, because XMLHttpRequest cannot load -- This does NOT mean that it does not work, it just means that you need to test your code on same domain aka. your server

提交回复
热议问题