javascript - type=file
阿神
阿神 2017-05-19 10:36:13
0
2
531
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <input type="file" id="shangChuan"  multiple="multiple" accept="image/*" />
    </body>
    <script type="text/javascript">
        var shangChuan = document.getElementById("shangChuan");
        shangChuan.addEventListener("change",function () {
            alert(shangChuan.value)
        })
    </script>
</html>

在华为荣耀7i图片地址不对..

我的图片名da_1488896847485.jpeg

阿神
阿神

闭关修行中......

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!