Version 1.2.3
VanJS Router v1.2.3 Release Notes
Update Date: January 10, 2024
nowRoute
Method: Retrieves information about the currently active route. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R24activeRoute
Variable: Returns a Van State object. Modifying this value will trigger updates to the route andlocation.hash
. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R30Route
Interface: Used for constructing route information obtained fromlocation.hash
. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R6RouteSetting
Interface: Construction parameters for theRoute
route component. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R13
VanJS Router v1.2.3 更新日志
更新日期:2024 年 1 月 10 日
nowRoute
方法:获取当前活动的路由信息 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R24activeRoute
变量:返回一个 Van State 对象。修改此值将触发路由和location.hash
的更新 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R30Route
接口:用于构建从location.hash
读取到的路由信息 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R6RouteSetting
接口:Route
路由组件的构建参数 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R13