📅  最后修改于: 2022-03-11 15:02:11.157000             🧑  作者: Mango
getInitialState: function(){
return{file: []}
}
_onChange: (event)=>{
this.setState({
imgs: event.target.files
})
},
render: function(){
return(
{/* Display all selected images. */}
{this.state.imgs && [...this.state.imgs].map((file)=>(
))}
)
}