最新版已经不支持全局函数定义controller,var app=angular.module("app",[]); app.controller('con',function($scope){
$scope.username = 'xx';
})
$scope.username = 'xx';
})
2015-06-14