如果是自己写的input file 类型的表单,在ios 中 不能直接在内存中生成这个表单,在内存中直接生成的input 表单 ios 不能直接触发input的change事件,所以是没有效果的。 解决: const input = dcoumnet.createElement("input") // 在内存中创建一个input的元素 input.type = "file" // 将类型设置为文件类型的表单 input.hidden = "hidden" // 将表单进行隐藏 document.