我想这个是所有前端工程师都会碰到的问题,在你做了很多页面,需要调用同一个头部或者底部的时候,需要嵌套一下,这个时候怎么办 AddType text/html .shtml AddOutputFilter INCLUDES .shtml 再搜索 Options Indexes FollowSymLinks 后面添加“ Includes” 即将该行改变为 Options Indexes FollowSymLinks Includes 保存,再重启apache服务器 引用方法 这里推荐用virtual方法,不推荐用file方法 转载请注明:Web前端开发-Web前端工程师 ? Shtml完美解决静态页面内部调用其他页面(非Iframe、Object、Js方法) Tags: JS, shtml, 兼容, 完美, 静态页面 |
|