【问题标题】:Meteor event selector for a given attribute给定属性的 Meteor 事件选择器
【发布时间】:2017-02-22 05:21:06
【问题描述】:

这个 Meteor 模板事件只需要在具有 name=abc 属性的 input 元素中触发,有没有办法做到这一点?

'keyup input[name-attribute is abc??]': function (evt, template) {

};

【问题讨论】:

    标签: javascript jquery meteor meteor-blaze


    【解决方案1】:

    这比你想象的要容易:

    'keyup input[name=abc]': function (evt, template) {
    
    };
    

    【讨论】:

      猜你喜欢
      • 2014-12-08
      • 1970-01-01
      • 1970-01-01
      • 2012-04-10
      • 2016-05-11
      • 2010-10-19
      • 2017-10-05
      • 2010-12-14
      • 1970-01-01
      相关资源
      最近更新 更多