如何将值传递给模板事件
html
<template name="Header">
<div class="testClass">Text1</div> // pass a = 1
<div class="testClass">Text2</div> // pass a = 2
</template>
Javascript
Template.Header.events({
'click .testClass':function(event, template){
console.log(a) //print a values
}
});