09 2018 档案

摘要:ngRoute模块是angularjs自带的路由模块,ui.router是一个第三方路由模块,接下来将对两者进行一个对比: ng-router(angular-router.js) ng-view ngRoute模块 $routeProvider服务 .when() .otherwise(); ui 阅读全文
posted @ 2018-09-05 12:34 pei~乐悠悠 阅读(608) 评论(0) 推荐(0)
摘要:解决办法原文地址:https://blog.csdn.net/weixin_36185028/article/details/72179568 angularjs支持两种url模式,hash模式和html5模式 默认是hash模式,在hash模式下url中有#,例如:http://localhost 阅读全文
posted @ 2018-09-04 15:42 pei~乐悠悠 阅读(1631) 评论(0) 推荐(0)
摘要:$location服务分析浏览器地址栏中的URL(基于window.location),让我们可以在应用中较为方便地使用URL里面的内容。在地址栏中更改URL,会响应到$location服务中,而在$location中修改URL,也会响应到地址栏中。 $location服务: 暴露当前浏览器地址栏的 阅读全文
posted @ 2018-09-03 11:19 pei~乐悠悠 阅读(894) 评论(0) 推荐(0)