JQuery/JS插件 jsrender 遍历数组

遍历数组,获取当前的元素

    <script type="text/x-jsrender" id="template-sensor">
        {{for obj}}
        <label>{{:#data}}</label>
        {{/for}}
    </script>
$("#tbody-waring").append($("#template-waring").render(response));
原文地址:https://www.cnblogs.com/guxingy/p/9364109.html