java thymeleaf + shiro html页面中 <script>标签中 {{# }} 是什么意思

{{#
function __createSlidebar(data,index){
if(!data || data.length == 0) return '';
var html = '

';
layui.each(data, function(i, child) {
var left = index == 0 ? 50 : 50 + index * 20;
var title = child.title;
if (child.icon) {
title = '' + child.title
}
html += '
lay-href="'+ (child.href||'') +'">' + title + '';
if(child.childs) html += __createSlidebar(child.childs,index+1);
html += '

';
});
html = html +'

';
return html;
}

这就是一个模板格式。取值赋值用的

<script>标签中 {{# }} 是直接把值嵌入到js脚本中。
你的代码没有贴正确,看不到哪里插入了 {{# }} ,你修改问题后我再帮你看。

应该是后端的模板语法吧,表示这段是程序或者纯文字内容 不需要解析
你这段是JS 应该是让Java当做字符串处理 不用解析的