模版:ng-change="change($event)" js:
$scope.change = function($event){
console.log( $event.target );
}
这样写 会报错:TypeError: Cannot read property ‘target’ of undefined 但是把ng-change换成ng-click 就是没问题的,求解?
模版:ng-change="change($event)" js:
$scope.change = function($event){
console.log( $event.target );
}
这样写 会报错:TypeError: Cannot read property ‘target’ of undefined 但是把ng-change换成ng-click 就是没问题的,求解?