参考: https://docs.angularjs.org/api/ng/service/$location 转载于:https://www.cnblogs.com/lshan/p/8855042.html