最新回答 / 慕先生7412563
http://video.chisa.edu.cn/u.html?uid=38681p://video.chisa.edu.cn/u.html?uid=38681video.chisa.edu.cn/u.html?uid=38678http://video.chisa.edu.cn/u.html?uid=38678p://video.chisa.edu.cn/u.html?uid=38678video.chisa.edu.cn/u.html?uid=38675http://video.chisa.edu....
2022-03-06
最新版的dart做了語法升級,首先創建person類的時候聲明的name和age就會讓你賦默認值或者使用條件運算符?,再main方法中如果你不初始化person對象的話,使用?它也提示你需要實例化對象才能調用方法,實例化對象后你可以使用?調用方法,但會警告沒必要這么做