{{checked}} // 这个地方打印了一下,就是false<label catchtap='checkedTap'> <radio color="#F0301B" checked="{{checked}}" /> </label>
为什么我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 >
回答:
检查一下类型有没有错,有没有setData到
this.setData({ isTiptrue: false })
set一下
直接置空了,就不会选中了,常见的问题!