ng-keyup="$ctrl.enterKeySearch($event)"
self.enterKeySearch = function (e) { var keycode = window.event ? e.keyCode : e.which; if (keycode == 13) { self.searchColumn(); //当按下回车键时执行搜索函数 } };