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


//引入jquery的js


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

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


jquery实现静态html文件的include嵌入效果 < script  type ="text/javascript" >
jquery实现静态html文件的include嵌入效果$.get(
"footer.html",function(data){
           $(
"#foot").html(data);

});


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

你可能感兴趣的:(jquery)