jQuery加载公用文件jquery

/ / 2023-07-27   阅读:2496
jQuery加载公用文件...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("#header").load("header.html");
    $("#footer").load("footer.html");
});
</script>
</head>
<body>

<div id="header"></div>
<div id="footer"></div>

</body>
</html>


我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈