我覺得路由是Angular 裡很重要的一部分,也是一個初學者比較不容易理解的部分,所以希望透過這 ... ngOnInit() { // 第一種方式console.log(this.route.params['id']); ...
確定! 回上一頁