🍉 加载中...


Dart的日常: 延时执行

0 minute read
1// seconds的值为延时时间, seconds表示延时单位为秒
2Future.delayed(Duration(seconds: 1), (){
3    print('延时1s执行');
4});