0
点赞
收藏
分享

微信扫一扫

前端项目实战209-识别pda小demo


import React, {useState} from 'react';
import {Input, Button} from 'antd';
function App() {
const [content, setContent] = useState('');
const handleChange=(e)=>{
setContent(e.target.value);
}
const cleanText=()=>{
setContent('');
}
return (
<div>
<Input id='scanid' value = {content} onChange={handleChange}></Input>
<Button onClick={cleanText}>清除</Button>
</div>
);
}

export default App;

举报

相关推荐

0 条评论