Angular中的元件(component)啟動的時候,分別會觸發兩個事件: constructor; ngOnInit constructor是javascript中 class 產生出來時候會執行的建構式
確定! 回上一頁