var app = angular.module('myApp', []); 第二个参数是依赖的模块,因为这里不需要依赖其它模块,因此为空,但是[]不能省略。 转载于:https://www.cnblogs.com/knuzy/p/9190426.html