赞
踩
<button (click)="onClick($event)"></button>
$event 输出: MouseEvent {isTrusted: true, screenX: 395, screenY: 541, clientX: 284, clientY: 383, …}
<input (keydown.enter)= "onEnter($event)" type="text">
$event 输出:KeyboardEvent {isTrusted: true, key: "Enter", code: "Enter", location: 0, ctrlKey: false, …}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。