5
我在Polymer 0.5上使用此代码,但在聚合物1.0上它不起作用。聚合物1.0自定义事件
在子元素:
this.fire('login-start', {
username: this.username,
password: this.password,
me: this
});
在父元素(APP-main.html中):
<dom-module name="app-main" on-login-start="{{checkLogin}}">
而且在App-main.js:
checkLogin: function() {
alert("This is not working.");
}
怎么办我在Polymer 1.0中触发并捕获自定义事件?
感谢它的工作。 – paphonb