?
Ce document utilise Manuel du site Web PHP chinois Libérer
指定自定義行為到keyup事件上。
<ANY
ng-keyup="">
...
</ANY>
參數(shù) | 類(lèi)型 | 詳述 |
---|---|---|
ngKeyup | expression | 在 keyup觸發(fā)時(shí)執(zhí)行的表達(dá)式. (事件對(duì)象存于 |
<p>Typing in the input box below updates the key count</p>
<input ng-keyup="count = count + 1" ng-init="count=0"> key up count: {{count}}
<p>Typing in the input box below updates the keycode</p>
<input ng-keyup="event=$event">
<p>event keyCode: {{ event.keyCode }}</p>
<p>event altKey: {{ event.altKey }}</p>