使用一个按钮触发file按钮的click事件
代码在ie上可以运行,但在FF上没有反应
<html>
    <head>
        <script>
        function getFile()
        {
            document.getElementById("importfile").click();
        }
        </script>
    </head>
    
    
    <body>
        <input type="file" id="importfile"></input>
        <input type="button" onclick="getFile();"></input>
    </body>
</html>