angular Js 回车处理

 不说多的,就一个代码:

<input type="search" class="am-form-field" placeholder="输入搜索关键字" ng-model="SearchKey" ng-keypress="($event.which === 13)?GetList():0">

  GetList() 为函数

猜你喜欢

转载自www.cnblogs.com/SilenceTom/p/9499320.html