js pops up the file selection box, only select the folder

<html>
<body>
    
<input id=b type=file webkitdirectory>
    




<script type="text/javascript" charset="UTF-8">
            
    document.querySelector('#b').addEventListener('change', e => {
  for (let entry of e.target.files)
    console.log(entry.name, entry.webkitRelativePath);
});        
            
            
</script>


    
</body>
</html>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324737438&siteId=291194637