Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试执行以下操作:
<div ng:repeat='row in _.range(0,{{rowCount}})'></div>
但它不评估{{rowCount}}。我需要做什么才能对其进行评估?
{{rowCount}}
ngRepeat 已经评估了您传递给它的表达式。您不需要 - 也确实不应该 - 使用 {{}}。只需参考rowCount:
<div ng:repeat='row in _.range(0,rowCount)'></div>
它应该工作!