2012-10-19 45 views

回答

1

该模式似乎很奇怪。但你可以这样写:

<script id="myTmpl" type="text/x-jsrender"> 
    {{:smith[0].first}}: Age: {{:smith[0].age}} 
    {{:jones[0].first}}: Age: {{:jones[0].age}} 
</script> 
+0

感谢您的回复鲍里斯。我注意到你经常回答问题。它必须干扰你的开发时间!我是jsrender/jsviews的新手。我认为这个结构可能让我访问特定的行。我已经在这里发布:http://www.borismoore.com/2012/03/approaching-beta-whats-changing-in_06.html,如果我能从那篇文章中得到我想要的东西,我将废除这个模式。再次感谢。尼尔。 –

相关问题