在显示的模态事件中,在流星应用程序中定义事件的正确方法是什么

时间:2015-10-21 13:49:34

标签: javascript jquery twitter-bootstrap meteor

我有一个jquery处理程序如下;

$('#input-output-match').on('shown', function () {
        console.log('inside on shown function ');
        instance.constructResultSets();
        instance.connectResultSets();
    });

我正在使用 bootstrap 2.3.2 和meteor applicaton,因此我想为同一目的编写一个事件。这是我到目前为止的尝试:

Template.flowchart.events({
'shown #input-output-match':function(e){
    console.log('invoked!');
}
});

但它没有被调用,这样做的正确方法是什么?

0 个答案:

没有答案