比如
serviceApp.controller('myCtrl',function($scope,myConfig){ $scope.name = myConfig.name; $scope.love = myConfig.love; $scope.age = myConfig.age; $scope.money = myConfig.money; $scope.id = myConfig.getId(); $scope.$watch(myConfig.love,function(){$scope.love = myConfig.love;}); // console.log(myCtrl);}); 我想把这个控制器‘myCtrl’打印出来,该怎么做?console.log(myCtrl);无效
开满天机
相关分类