标签:
在使用事件时,要获得当前对象,需传递参数。eg:
<input ng-focus="foucs($event)">
controller:
$scope.focus = function (event) {
$(event.currentTarget).select();
}
可实现获得焦点全选输入框的文字的效果
angular js
原文地址:http://www.cnblogs.com/gary156/p/5523682.html