用angularjs 模块时Error: [ng:areq] Argument 'controller' is not a function,
今天学习angular时,发生了这个错误,网上大多数是说,不能直接用function写controller了,要用module,但我就是用的module啊代码如下:js:varmainApp=angular.module("mainApp",[]);mainApp.controller("controller",function($scope){$scope.student={firstName: