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