惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog

博客园 - MyFavorite

成长、改变、突破 软件工程相关整理 Oracle取TOP N条记录 Oracle:分割字符串 use CheckBoxMultipleChoice in wicket 5个必须掌握的maven命令 根据对象名获取对象 外网SQL服务器设置 VB6.0调用SetTimer实现定时器 cmd命令控制台窗口一闪就消失解决办法 jdbc访问数据库 - MyFavorite - 博客园 java与MSSQL2000连接 - MyFavorite - 博客园 关于java CountDownLatch java InputStream读取数据问题 MyEclipse中防止代码格式化时出现换行的情况的设置 java监控多个线程的实现 TCP连接状态 Java定时器代码 java下的日期函数实现
INCLUDE COMMON FILES IN HTML USING JQUERY
MyFavorite · 2014-03-19 · via 博客园 - MyFavorite

Simple example for including common files in HTML. JQuery load() function is used for including common HTML files in multiple pages. An example for this is added here.

 1 <html>
 2 <head>
 3 <title>Include Common Files</title>
 4 <script src=”//code.jquery.com/jquery-min.js”></script>
 5 </head>
 6 <body>
 7 <div id=”header”></div><br />
 8 <div id=”content”>
 9 Main Content
10 </div><br />
11 <div id=”footer”></div>
12 <script>
13 $(“#header”).load(“header.html”);
14 $(“#footer”).load(“footer.html”);
15 </script>
16 </body>
17 </html>