这是我的第一天,我试图做一个简单的工作,但事实并非如此。这是一个小提琴:http: //jsfiddle.net/LKktL/
<body ng-app>
 <div ng-controller='EventAddCtrl'>
    <p>Nothing here {{'yet' + '!'}}</p>
 <div class='first-test' ng-click="say_hello()">angular test to say hello</div>
</div>   
</body>
</p>
function EventAddCtrl($scope){
  $scope.say_hello = function() {
    alert('hello in there');
  }
}
它显然不起作用并试图找出原因。提前谢谢