3370| 12
|
[已解答] 开关状态需要在循环体中读取 |
点评
如果将const去掉的话不就不能获取手机上的state值吗?
state是一个常量的引用,所有试图给state赋值的操作都会被驳回。把关键字const去掉试试
| ||
| ||
发表于 2021-6-23 18:23
|
显示全部楼层
| ||
发表于 2021-8-9 22:26
|
显示全部楼层
| ||
发表于 2021-8-10 09:09
|
显示全部楼层
| ||
GMT+8, 2024-11-28 12:42 , Processed in 0.166220 second(s), 19 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.