HTML5 File API: How to see the result of readAsText()
来源:互联网 发布:网络水军有多少 编辑:程序博客网 时间:2024/04/29 22:24
http://stackoverflow.com/a/13729386/2177408
readAsText
is asynchronous, so you would need to use the onload
callback to see the result.
Try something like this,
var fr = new FileReader();fr.onload = function(e) { // e.target.result should contain the text};fr.readAsText(file);
0 0
- HTML5 File API: How to see the result of readAsText()
- how to see the num of cpus on ubuntu
- How to see the world?
- How to resize a *.jpg image and save the result to a file
- HOw to see the oracle explain plan
- How to delete the log file of log4j dynamically
- How to check the size of file/directory ?
- How to enter an End-Of-File from the keyboard
- how to find the log file of mysql
- How to see all the application errors related to SQL Server and export them to a .csv file.
- How to get Version of the application and API version
- How to compare the differences of the same file in the two nodes
- How to see version difference of xxDataSet.xsd
- how to see myexport
- How to redirect the output of DBMS_OUTPUT.PUT_LINE to a file
- Linux - How to remove the new line at the end of file when using vim
- how to extract code of apk file
- How to calculate the MD5 hash of a large file in C?
- 细说HTML元素的ID和Name属性的区别
- jaxb读写xml小例子
- 关于HTML5的FileReader这个高级货的用法
- 每一个程序员需要了解的10个Linux命令
- 使用JavaScript进行基本图形操作与处理
- HTML5 File API: How to see the result of readAsText()
- 安装eclipse maven插件(手动离线安装)
- html5学习4:HTML5之input:file说明
- 机器学习与智能优化 之 学习有道
- POJ 2739 - Sum of Consecutive Prime Numbers(素数筛法+前缀和 / 尺取法)
- mahout-0.9的安装配置
- LightOJ 1189 - Sum of Factorials(贪心)
- 用绘制控件绘制要素示例(openlayers)
- [System Design]Scalability for Dummies学习笔记