jquery实现静态html文件的include嵌入效果

//引入jQuery的js

  建立footer.html,内容为要嵌入的内容。

  在需要嵌入的页面中加入:

$.get("footer.html",function(data){
$("#foot").html(data);
});

其中foot为嵌入的页面放的位置的外层DIV等。

原文地址:https://www.cnblogs.com/garfield211/p/5662755.html