问题标签 [shtml]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
412 浏览

netbeans - 如何让 NetBeans 识别 SHTML 文件?

我不想在我的网页上包含通用页眉和页脚。我还不知道 php,而且服务器不运行 java、jsp、servlet 等,所以有人告诉我使用 SSI,即包含语句。为了让它工作,我不得不将 index.html 重命名为 index.shtml 并包含 < !--#include file="someFile.html" --> (在 ! 之前没有空格,只是把它放进去,因为它不是出现问题,因为它看起来像评论)这在服务器上完美运行,但我的问题是netbeans在以格式运行时不包括页眉或页脚!有谁知道如何配置 netbeans 8 以允许这种格式?谢谢。

0 投票
3 回答
7750 浏览

javascript - 选择项目时重新加载页面