首页 \ 问答 \ backbone.js的目的是什么?(What is the purpose of backbone.js?)

backbone.js的目的是什么?(What is the purpose of backbone.js?)

我试图从其网站http://documentcloud.github.com/backbone了解backbone.js的实用性,但我仍然无法弄清楚。

任何人都可以通过解释它是如何工作的,如何帮助我写更好的JavaScript?


I tried to understand the utility of backbone.js from its site http://documentcloud.github.com/backbone, but I still couldn't figure out much.

Can anybody help me by explaining how it works and how could it be helpful in writing better JavaScript?


原文:https://stackoverflow.com/questions/5418369
更新时间:2021-12-01 14:12

最满意答案

花括号用于“属性值模板”,但在这种情况下,您不是在这里创建属性,只是一个普通的文本节点。 我想你需要做这样的事情

<xsl:variable name="xx" select="'40967.6424503935'"/>
<script type="text/javascript">
   time(<xsl:value-of select="$xx" />);
</script> 

The curly braces are for 'Attribute Value Templates', but in this case you are not creating an attribute here, just a normal text node. I think you need to do something like this

<xsl:variable name="xx" select="'40967.6424503935'"/>
<script type="text/javascript">
   time(<xsl:value-of select="$xx" />);
</script> 

相关问答

更多