路由知道配了后,.controller('xxxxCtrl', ['$scope',function($scope){$scope.test=function(){console.log("这就是方法1");}}在xxxx页面中