采用JS实现 include 命令:hinclude.js
jopen
10年前
hinclude.js让你可以在直接在客户端实现实现 include 命令,不需要服务器脚本支持。用于来包含其它HTML文件。
示例代码:
<hx:include src="/other/document/here.html"></hx:include>
或者是指定默认内容:
<hx:include src="new"> this content will be overwritten by the included content </hx:include>