web-view中使用 input type=file 自动退回上一个页面。

发布于 7 年前作者 sxu12001 次浏览最后编辑 7 年前来自 ask

系统:安卓7.0

在小程序 web-view 中上传附件

使用  <input    type=“file”  />

按钮点击后

自动跳转到前一个页面。

在开发工具中  和公众号  都是正常的,只有在小程序中是这样。

1 回复
juanyin
juanyin1 楼5 年前

你好,建议使用jssdk的chooseImage接口代替<input    type=“file”  />