抖音小程序webview打开h5中input上传文件accept限制为啥不起作用?
<input accept="application/pdf" type="file" id="fileInput" class="file-input">
网友回复
支持新版的chrome内核webview才支持,抖音的webview内核部分手机机型不支持,可以通过js动态获取上传文件的后缀来判断
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Input Example</title>
</head>
<body>
<input type="file" id="fileInput">
<p id="fileInfo"></p>
<script>
document.getElementById('fileInput').addEventListener('change', function(event) {
const file = event.target.files[0];
if (file) {
...点击查看剩余70%
为什么主流大模型架构都在用MoE,而不是传统的Dense?
js如何将图片转换成拼豆图案风格?
ai能接管电脑手机写作剪辑视频自主运营自媒体账号为用户赚钱吗?
python+qwen的api如何实现类似skills的技能创建与自主调用?
python+openai兼容api如何实现自主调用浏览器搜索登录发布信息?
安卓手机投屏电视视频播放结束如何自动播放下一集?
PaddleOCR-VL-1.5与deepseek ocr2谁更好?
电商系统中优惠券规则引擎与组合优惠如何设计避免在代码中重复使用ifelse?
Grok Imagine Video这个ai能根据用户文本指令编辑视频吗?
Openai的Prism到底是啥?


