此示例代码中使用了哪个 Javascript 框架?

时间:2021-06-25 17:57:30

标签: javascript jquery android-webview

这是在 Android 项目的 webview 目录中找到的一段代码。

    <script id="table" type="text/template">
      <table>
        {% _.each(data.rows, function(row) { %}
            <tr>
                {% if (row.length == 1) { %}
                    <td style="text-align: center" colspan="{{data.maxRowLength}}">
                        {{row[0]}}
                    </td>
                {% } else { %}
                    {% _.each(row, function(cell) { %}
                        <td>{{ cell }}</td>
                    {% }) %}
                {% } %}
            </tr>
        {% }) %}
    </table>
    <br>
   </script>

2 个答案:

答案 0 :(得分:0)

看起来像 Django 模板(python 框架)引擎,但这是一个猜测 https://docs.djangoproject.com/en/3.2/ref/templates/builtins/

答案 1 :(得分:0)

这似乎类似于 Jinja Templating - https://jinja.palletsprojects.com/en/3.0.x/