angular5之DOM绑定和html绑定

1)DOM绑定 (一般是事件绑定) html <input value='tom' (input)="doInput($event)"></input> component doInput(event:any){ console.log(event.target.value) } 2)html绑定 (一般是class,style,attr属性绑定) (------------------
相关文章
相关标签/搜索