http://www.iteye.com/problems/78278
使用JQuery的load方法吧!
/*导入页面*/
$(document).ready(function(){
$(".top").load("top.html");
$(".footer").load("footer.html");
});
把他写入到js文件里,在需要的页面导入就可以了
http://www.iteye.com/problems/78278
使用JQuery的load方法吧!
/*导入页面*/
$(document).ready(function(){
$(".top").load("top.html");
$(".footer").load("footer.html");
});
把他写入到js文件里,在需要的页面导入就可以了