如何在meteor模板中实现on
事件。普通的Jquery代码
$('.js-star-rating').on('change','input', function() {
//Some codes
});
流星模板
Template.myTemplate.events({
// How to achieve above js code here
});
答案 0 :(得分:3)
来自http://docs.meteor.com/#/full/eventmaps
"change .js-star-rating input": function(event, tpl){}