静态页面Demo项目,如何将header和footer 像PHP一样 include?


静态页面Demo项目,如何将header和footer 像PHP一样 include?

jquery htm HTML css JavaScript

芥末的人参 9 years, 6 months ago

angularjs

popopo answered 9 years, 6 months ago

使用 fis 。有html嵌入功能,可以如下使用。


 <link rel="import" href="demo.html?__inline">

被时间埋葬 answered 9 years, 6 months ago

http://jade-lang.com/reference/includes/
用jade写,支持include的。

暴走天使99 answered 9 years, 6 months ago

装个nginx,开启ssi

十八禁书目录 answered 9 years, 6 months ago

用前端模板配合js

泡泡Ж忍者 answered 9 years, 6 months ago

最简单是用iframe


 <IFRAME NAME="header_frame" width=100% height=30 marginwidth=0 marginheight=0 SRC="thefooter.html" ></IFRAME>

calfn answered 9 years, 6 months ago

Your Answer