angular Js 回车处理

Posted tclywork

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了angular Js 回车处理相关的知识,希望对你有一定的参考价值。

 不说多的,就一个代码:

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

  GetList() 为函数

以上是关于angular Js 回车处理的主要内容,如果未能解决你的问题,请参考以下文章