Neden aynı JSON nesne kodu ul
öğeleriyle çıktı üretir, ancak table
etiketiyle değil. İşte Bıyık Şablon tablonun içinde görüntülenmiyor tılsım
<div id="template-ul">
<h3>{{name}}</h3>
<ul>
{{#students}}
<li>{{name}} - {{age}}</li>
{{/students}}
</ul>
</div>
<div id="template-table">
<table>
<thead>
<th>Name</th>
<th>Age</th>
</thead>
<tbody>
{{#students}}
<tr>
<td>{{name}}</td>
<td>{{age}}</td>
</tr>
{{/students}}
</tbody>
</table>
</div>
javascript kodudur: -
http://jsfiddle.net/pRSjH/2/
değiştirin. –