1、在文件夹中创建一个html文件“test”。

3、添加两个input,一个是button,一个是file把id设置为“open”style类型设置为“display:none”不显示。

5、现在我们给button添加onclick事件,调用openfile触发id为“open”的file。

1、在文件夹中创建一个html文件“test”。
3、添加两个input,一个是button,一个是file把id设置为“open”style类型设置为“display:none”不显示。
5、现在我们给button添加onclick事件,调用openfile触发id为“open”的file。