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

ITWYY

关注

阅读 98

2023-02-11


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)

0 0 举报