您将 activatedRoute.snapshot.params.id 中的参数设为 2 。 您可以通过实施以下内容来查看: export class AComponent { constructor(r: ActivatedRoute) { r.url.
確定! 回上一頁