1.Constructor和OnInit的区别. 当我们创建一个组件时,ts文件默认写成下面的样子. import { Component, OnInit } from '@angular/core';.
確定! 回上一頁