FileReader HTML 5 API的Flash备用 [英] Flash alternative for FileReader HTML 5 API

查看:120
本文介绍了FileReader HTML 5 API的Flash备用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望本地文本文件的内容在JavaScript中可用。我已经实现了使用HTML 5 FileReader API,但现在只适用于Mozilla Firefox和Chrome。



我知道可以创建一个跨浏览器解决方案使用Flash。是否有任何开源项目可以做到这一点?

解决方案

这是一个开源项目,为您提供旧版FileReader API浏览器通过Flash:



https://github.com/ Jahdrien / FileReader


I want the content of a local text file to become available inside JavaScript. I've achieved that using HTML 5 FileReader API, but this works only in Mozilla Firefox and Chrome now.

I know that it is possible to create a cross-broswer solution using Flash. Is there any open-source project that do that?

解决方案

Here's an open source project which provides you with the FileReader API in older browsers via flash:

https://github.com/Jahdrien/FileReader

这篇关于FileReader HTML 5 API的Flash备用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆