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