我有這一段代碼在角1.4.7:NG-按鍵,NG-KEYUP,NG-KEYDOWN不點火
<input ng-keypress="console.log('press');" required="" class="form-control" ng-model="item" name="item" ng-disabled="reviewMode === 'REVIEW'" placeholder="Item">
的的console.log( '按下')不會觸發上的任意鍵按下。我也嘗試使用keyup和keydown,它們也不工作。
我知道一個元素需要具有ng-keypress的tabindex屬性才能工作,我嘗試添加屬性,即使是強硬的輸入元素(仍然不起作用)。
我缺少什麼?
謝謝,不知道一個:) – jdabrowski