📅  最后修改于: 2022-03-11 15:04:05.779000             🧑  作者: Mango
export class HeroComponent implements OnInit {
constructor(private _activatedRoute: ActivatedRoute, private _router:Router) {
_router.routerState.queryParams.subscribe(
params => console.log('queryParams', params['st']));