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

来源:互联网 发布:淘宝直通车如何竞价 编辑:程序博客网 时间:2024/05/17 04:48

原址http://blog.csdn.net/csnewdn/article/details/53888077

//引入jQuery的js


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

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


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

});


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

0 0
原创粉丝点击