var mouseEvent = document.createEvent("MouseEvents");//FF的处理
mouseEvent.initEvent("click", true, true);
document.getElementById("fileInput").dispatchEvent(mouseEvent);
上面是我试的一个方法,不行。想找一个在ios和安卓中有效的方法...
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。