我有一个车把帮手的View,我想让它在点击它时做点什么。什么都没发生。
VpcYeoman.GlassPanelView = Ember.View.extend({
tagName: 'div',
classNames: ['glassWindow'],
click: function(e) {
console.log('Embers docs will be their downfall in 2 years because it is unorganized, takes up all of the google search results and gives vague examples if any at all ')
$(this).css('display', 'none');
$(this).parent().removeClass('float-right-col-minimized');
}
});
Ember.Handlebars.helper('glass-Panel', VpcYeoman.GlassPanelView);
{{#glass-Panel}} {{/glass-Panel}}
应该知道何时使用(这个)点击它,为什么这对我不起作用?