issues
search
wonderfan
/
javascript
Explore the power of HTML,CSS and JavaScript
1
stars
0
forks
source link
如何使用$routeParam?
#56
Closed
wonderfan
closed
9 years ago
wonderfan
commented
9 years ago
route param 用来获得location传递的参数, 根据传递的形式和url的配置形式进行map
wonderfan
commented
9 years ago
// URL:
http://server.com/index.html#/Chapter/1/Section/2?search=moby
// Route: /Chapter/:chapterId/Section/:sectionId
// Then
$routeParams ==> {chapterId:'1', sectionId:'2', search:'moby'}
route param 用来获得location传递的参数, 根据传递的形式和url的配置形式进行map