为什么我radio的checked值变成了false,样式还是选中的样式?

小程序 文章 2021-03-05 18:21 888 0 全屏看文

AI助手支持GPT4.0

为什么我radio的checked值变成了false,样式还是选中的样式?Why does the checked value of my radio become false, and the style is still the selected style?

为什么我radio的checked值变成了false,样式还是选中的样式?
{{checked}} // 这个地方打印了一下,就是false<label catchtap='checkedTap'> <radio color="#F0301B" checked="{{checked}}" /> </label>

{{checked} / / this place is printed, which is false < label catchtap = {checked} > < radio color = # f0301b "checked = {checked} > / > < / label >

回答:

三河汇尤佳科技有限公司:

直接置空了,就不会选中了,常见的问题!

Brother斌🎈:

检查一下类型有没有错,有没有setData到

十一:
Joker:

this.setData({ isTiptrue: false })

set一下

-EOF-

AI助手支持GPT4.0