我刚刚开始使用 Mustache,我遇到了这个渲染问题。我通过渲染函数发送数据:
return Mustache.render(html, data);
或者
return Mustache.to_html(html, data);
但是当我将它附加到一个像这样的 div 时:
$('#jqt').append(html);
它以实际文本形式返回如下结果:
<div id="product_search_view"><form class="search-form" ><ul class="rounded"><li><input type="text" id="label" name="search" placeholder="Enter what you are looking for"></li></ul><a href="#" class="whiteButton submit" id="search-button" >Search</a></form><ul id="search-results" class="edgetoedge"></ul></div>
我怎样才能让小胡子不放那些字符?