HarmonyOS 鸿蒙Next TextTimer组件,在isCountDown为true时,会先显示0,然后再开始倒计时
TextTimer组件,在isCountDown为true时,会先显示0,然后再开始倒计时 代码如下:
TextTimer({ isCountDown: false, count: 60000, controller: this.textTimerController })
.size({ width: 100, height: '100%' })
.margin({ left: 12 })
.format('s')
.fontColor(Color.White)
.fontSize(14)
.align(Alignment.Center)
.onTimer((utc: number, elapsedTime: number) => {
console.info('textTimer notCountDown utc is:' + utc + ', elapsedTime: ' + elapsedTime)
})
更多关于HarmonyOS 鸿蒙Next TextTimer组件,在isCountDown为true时,会先显示0,然后再开始倒计时的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复