没有什么意思,只是写法不一样而已,第一种可以拿到app变量,方便在在其他文件中定义controller directive等。第二种可以直接在后面继续写 .controller()…………。本质没有区别