$routeParams $route.current.params
生活随笔
收集整理的這篇文章主要介紹了
$routeParams $route.current.params
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
params 參數(shù)的意思
<a href="Book/Scarlet/?name=liu">Scarlet Letter</a><br/> ? 在js中寫{{$routeParams.name}}得到的值為liu ?
$routeParams加“.”后得到的值為?后面?zhèn)鞯膮?shù)??梢浴?”出來(lái)
$route.current.params 和?$routeParams 有個(gè)先后順序,?$routeParams有從上一個(gè)參數(shù)變到現(xiàn)在?后面參數(shù)的過(guò)程 ?
然后$route.current.params顧名思義就是現(xiàn)在
看Angularjs文檔中有個(gè)延時(shí)的講解注意觀察二者的變化 ? ?https://docs.angularjs.org/api/ngRoute/service/$route#example
演示調(diào)整代碼地址
https://plnkr.co/edit/?p=preview
轉(zhuǎn)載于:https://www.cnblogs.com/liucong7708/p/6546940.html
總結(jié)
以上是生活随笔為你收集整理的$routeParams $route.current.params的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 持续集成接口自动化-jmeter+ant
- 下一篇: jmeter之ip欺骗