首页 > IT职业 > IT图书 > ng-repeat = "i in [4]" [4
html```
js:
function EventController($scope) {
$scope.count = 0;
$scope.$on("MyEvent",function(){
$scope.count++;
})
} 输入代码
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/93/viewspace-2799330/ ,如需转载,请注明出处,否则将追究法律责任。