Angular 通过注入 $location 获取与修改当前页面URL的实例 以下获取与修改的URL以(http://172.16.0.88:8100/#/homePage?id=10&a=100)为例【一】获取(不修改URL)//1 $location