Dev*_*xon 3 html javascript mustache
我刚刚开始使用Mustache,我有这个渲染问题.我通过渲染函数发送数据:
return Mustache.render(html, data);
Run Code Online (Sandbox Code Playgroud)
要么
return Mustache.to_html(html, data);
Run Code Online (Sandbox Code Playgroud)
但是当我将它附加到div时:
$('#jqt').append(html);
Run Code Online (Sandbox Code Playgroud)
它在实际文本中给出了这样的结果:
<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>
Run Code Online (Sandbox Code Playgroud)
如何让小胡子不要放入这些角色?