location
@ray-js/ray
>=0.6.23。
Import
Properties
Difference between params and query
- params: Parameters matched from the route expression. For example, if the route is configured as
/detail/:uidand navigates to/detail/1234, thenlocation.params.uidis'1234'. - query: Parameters parsed from the URL query string after
?. For example, navigating to/detail/1234?name=tuya, thenlocation.query.nameis'tuya'.