摘要: 在使用事件时,要获得当前对象,需传递参数。eg: <input ng-focus="foucs($event)"> controller: $scope.focus = function (event) { $(event.currentTarget).select(); } 可实现获得焦点全选输入 阅读全文
posted @ 2016-05-24 15:55 garygao12580 阅读(91) 评论(0) 推荐(0)