AngularJS常用知识汇总(不断更新中....) 注:请点击此处进行充电! app.controller('editCtrl',['$http','$location','$rootScope','$scope','$state','$stateParams',]) function($http, $location, $rootScope, $scope, $state, $stateParams){ // 上边声明添加显示的依赖注入,是为了防止,压缩(如UglifyJS)时改变funct…