Skip to content

想问问各位,为什么我在react中边的点击事件时需要点击两次getSelectElements()才能获取到edges的数据? #1159

Answered by towersxu
jabihu asked this question in Q&A
Discussion options

You must be logged in to vote

没有nextTick,你就用setTimeout 0试试

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jabihu
Comment options

Answer selected by jabihu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants