jquery实现外静态html文件的引入---即:include嵌入效果

来源:互联网 发布:排序算法中空间复杂度 编辑:程序博客网 时间:2024/05/18 02:31

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

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


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

});


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

0 0
原创粉丝点击