"framework7获取路径参数"

Published on Aug. 22, 2023, 12:06 p.m.

{{$route.params.VideoId}}

$route has the following properties:

$route.url Url of the loaded route/page
$route.params Object with route parameters (e.g. userId and postId in the example above)
$route.hash Route hash
$route.query Parsed query object
$route.path Route path (same as $route.url but without query and hash)
$route.route Matched route from specified routes parameter

Tags: