angular.module()参数问题

var app = angular.module('myApp', []);

第二个参数是依赖的模块,因为这里不需要依赖其它模块,因此为空,但是[]不能省略。

猜你喜欢

转载自www.cnblogs.com/knuzy/p/9190426.html