3.4.3. 在主题中添加脚本 您可以在主题中添加一个或多个脚本。 流程 在主题的 < ;THEME TYPE>/resources/js 目录中创建一个文件。 将此文件添加到 theme.properties 中的 scripts 属性中。 例如,要将 脚本.js 添加到 mytheme 中,请使用以下内容创建 themes/mytheme/login/resources/js/script.js : alert('Hello'); 然后编辑 themes/mytheme/login/theme.properties 并添加: scripts=js/script.js 前一个下一个