摘要: 如下情况: 获取的是上次点击时的count值 const [count, setCount] = React.useState(0); function alertCount() { setTimeout(() => { alert(count) // 点击5次 后再触发,显示的是0 }, 1000 阅读全文
posted @ 2021-06-22 10:23 一路向北√ 阅读(871) 评论(0) 推荐(0) 编辑

web应用开发&研究 -

业精于勤而荒于嬉。

工作,使我快乐。


Font Awesome | Respond.js | Bootstrap中文网