1
我如何在Meteor中做到這一點?在流星中爲Handle模板返回多個值
Template.foo.bar = function() {
someVar = return value of some other function
return SomeCollection and someVar;
}
-------模板----
{{#each someCollection}}
{{someVar}} {{someCollectionField}}
{{/each}}
在常規的JavaScript我可以只使用一個數組返回多個值,它是如何在流星工作?
甜......謝謝! – algorithmicCoder 2013-02-20 21:13:21