Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/415.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用mustache js和link_Javascript_Json_Mustache - Fatal编程技术网

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>