<p class="am-form-group am-form-file">
<button type="button" class="am-btn am-btn-sm">
选择要上传的图片</button>
<input id="doc-form-file" type="file" accept="image/*" multiple>
</p>
<p id="file-list"></p>
如图是ios的微信浏览操作截图,但是在安卓端貌似只能访问相册,不支持拍照,有大牛给点意见吗
PHPz2017-04-17 14:30:36
<input id="File2" runat="server" type="file" accept="image/*" capture="camera" style="width:100%" />
Just use this.
黄舟2017-04-17 14:30:36
Input file means using native. So what is this native thing? I call him a shell, various realizations. Native browsers, uc, chrome, browsers under WeChat, etc. are all shells. The implementation of specific shells varies.
In other words, he can take pictures of you or not. You can't control it. Therefore, the shell is generally required to provide the corresponding API for web calls.