Javascript 如何使用mustache js和link
我尝试在这个代码中显示值Javascript 如何使用mustache js和link,javascript,json,mustache,Javascript,Json,Mustache,我尝试在这个代码中显示值{{app}和{{vendor}}。 你有什么想法吗? 对于这个,没关系 <td>{{title}}</td> <td>{{vendor}}</td> 数据: {{title}} {{供应商}} {{version} 这可能是一个排序问题。文档准备好后,您是否正在呈现小胡子模板?脚本我不是指您的声明。请用您如何使用Mustache.render()更新您的问题。 <?php echo '<a href
{{app}
和{{vendor}}
。
你有什么想法吗?
对于这个,没关系
<td>{{title}}</td>
<td>{{vendor}}</td>
数据:
{{title}}
{{供应商}}
{{version}
这可能是一个排序问题。文档准备好后,您是否正在呈现小胡子模板?脚本我不是指您的声明。请用您如何使用Mustache.render()更新您的问题代码>。
<?php echo '<a href="' . OSCOM::link('index.php', 'index.php?A&{{app}}\{{vendor}}') . '">' . HTML::image($OSCOM_Template->getImageDirectory() . '/icons/edit.gif', OSCOM::getDef('image_edit')) . '</a>'; ?>
{
"title": "BestSelling App",
"app": "BestSelling",
"vendor":"BestSelling"
}
<script id="appInstalledTableEntry" type="x-tmpl-mustache">
<tr>
<td>{{title}}</td>
<td>{{vendor}}</td>
<td class="text-md-right">{{version}}</td>
<td class="text-md-right action"><?php echo '<a href="' . OSCOM::link('index.php', 'index.php?A&{{app}}\{{vendor}}') . '">' . HTML::image($OSCOM_Template->getImageDirectory() . '/icons/edit.gif', OSCOM::getDef('image_edit')) . '</a>'; ?></td>
</tr>
</script>