" name="" > 我正在搜索引导表单生成器 https://github.com/IhabSoliman/Bootstrap--6ren">
gpt4 book ai didi

javascript - 在html文件中<%标签

转载 作者:行者123 更新时间:2023-11-28 07:42:03 25 4
gpt4 key购买 nike

<!-- Textarea -->
<div class="form-group">
<label class="col-md-4 control-label" for ="<%= id %>"><%= label %></label>
<div class="col-md-4" >
<textarea class="form-control" id="<%= id %>" name="<%= id %>" ><%= textarea %></textarea>
</div>
</div>

我正在搜索引导表单生成器

https://github.com/IhabSoliman/Bootstrap-Form-Builder

表单生成器应用程序中没有使用服务器端编程语言,所有文件都在 html 中,但一些标签如 <%= id %> 我不知道 html 文件中的标签是什么

您可以下载构建器应用程序,然后在 asset/js/templates/snippet 文件夹中包含所有 html 文件。您可以查看该文件以查看此标签。

简单来说,我想知道它是哪种语言标签

最佳答案

它正在使用Underscore's template compilation :

Template functions can both interpolate variables, using <%= … %>, as well as execute arbitrary JavaScript code, with <% … %>.

关于javascript - 在html文件中<%标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27892665/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com