我有以下文件结构我试图从 _includes 目录中获取 header.html,并将其导入 index.html 文件,以便它的文本显示在主文件(index.html)中
我已经尝试过这个,{% include header.html %}但显示的所有{% include header.html %}内容都不是 header.html 中的文本
{% include header.html %}
您可以w3-include-html从w3.js使用
w3-include-html
例子:
<div w3-include-html="content.html"></div>
HTML 包含
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句