angularjs 请求后端接口请求了两次

做路由的时候发现的,原因是定义了2次controller

在模版中定义了一次 ,又在路由.site中又定义了一次

去掉一个就可以了

原文地址:https://www.cnblogs.com/bruce-gou/p/6360127.html