中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
如何实现一个倒计时器?
微信扫码分享
TextTimer({ controller: this.textTimerController, isCountDown: this.isCountDown, count: 30000 }) .format(this.format) .fontColor(Color.Black) .fontSize(50) .onTimer((utc: number, elapsedTime: number) => { console.log(`textTimer notCountDown utc is:${utc}, elapsedTime: ${elapsedTime}`); }) Button("Start").onClick(() => { this.textTimerController.start(); })