Skip to content

Commit 7d01e1d

Browse files
authored
Update README.md
1 parent 509b63e commit 7d01e1d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,14 @@ options:{ // 验证码相关自定义参数
8989
/>
9090
````
9191

92-
## 4. 额外说明
92+
## 4. 手动刷新验证码
93+
```javascript
94+
<Vcode ref={(obj)=>this.vcode = obj} />
95+
96+
this.vcode.onClick(); // 调用内部的onClick方法可刷新验证码
97+
```
98+
99+
## 5. 额外说明
93100

94101
- 之前用过一个验证码插件叫 vcode.js, 不知道作者。 本react-vcode是通过vcode.js的源码进行修改加工,转成了react组件。感谢原作者。
95102

0 commit comments

Comments
 (0)