我正在开发一款Ionic应用程序(实际上是一款游戏),我的要求如下:
答案 0 :(得分:0)
我使用了Angular的ng-keyup指令,如下所示:
<div class="col" align="center">
<input type="button" class="button button-dark startButton" ng-keyup="stopTimer()"></input>
</div>
<div class="col" align="center">
<input type="button" class="button button-dark startButton" ng-keyup="testAlert($event)"></input>
</div>
<div class="col" align="center">
<input type="button" class="button button-dark startButton" ng-keyup="testAlert($event)"></input>
</div>