采用JS實現 include 命令:hinclude.js
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>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!