input file use onchange event

When uploading a form, after selecting a file, the path of the file should be displayed, but if the same file is selected continuously, the file path will not be displayed for the second time.

Solution: Set the input value to empty after uploading, input.value='';


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324821248&siteId=291194637