Skip to content

怎么获取当前验证码的值 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wangzhe13555313322 opened this issue Feb 15, 2019 · 2 comments
Closed

怎么获取当前验证码的值 #6

wangzhe13555313322 opened this issue Feb 15, 2019 · 2 comments

Comments

@wangzhe13555313322
Copy link

No description provided.

@wangzhe13555313322
Copy link
Author

通过点击其他,获取当前验证内容

@javaLuo
Copy link
Owner

javaLuo commented Feb 15, 2019

<Vcode
  onChange={(v) => this.setState({ code: v })}
/>

组件加载时和每次验证码被改变时,都会触发一次onChange, 返回值就是当前验证码的值,可以把这个值存入state, 就可以随时得到当前验证码的值了

@javaLuo javaLuo closed this as completed Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants