js-Async/Await和Promise

Posted 79 months ago

js 读取文件数据

input   type='file'

f = document.querySelector('.importbutton').files[0]
var reads= new FileReader()
reads.readAsText(f)
reads.result

点击评论