react 中 button按钮的禁用和启用状态
disabled 为false
是启用状态// 启用状态const flags = true;<Button disabled={flags}/>
disabled 为true
是禁用状态
// 禁用状态<Button disabled/>// 禁用状态2 变量控制const flags = false;<Button disabled={flags}/>
如果觉得《react 中 button按钮的禁用和启用状态》对你有帮助,请点赞、收藏,并留下你的观点哦!