錯誤錯誤:如果在表單標記中使用ngModel,則必須設置name屬性,或者必須在ngModelOptions中將表單控件定義為“獨立”。 範例1: <input [(ngModel)]='person.
確定! 回上一頁