We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何获得上传文件中的具体内容
<input type='file' accept='text/plain' onchange='openFile(event)'> <script> var openFile = function(event) { var input = event.target; var reader = new FileReader(); reader.onload = function(){ var text = reader.result; console.log(reader.result); // 显示内容 }; reader.readAsText(input.files[0]); }; </script>
使用fileReader 的这个新增的用法
可以得到inpt file 中文件的内容
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如何获得上传文件中的具体内容
使用fileReader 的这个新增的用法
可以得到inpt file 中文件的内容
The text was updated successfully, but these errors were encountered: