喜的Html5開發人員和開發人員HTML4太...如何獲得跨瀏覽器了兼容性對HTML5的window.fileReader API
我想知道是否有任何方式支持HTML5的window.fileReader API在IE8和以上。
下面的代碼:
if(window.fileReader){
alert("supported"); // in html5 works and fires alert but not in IE8
}
其實,我想在提交前讀取文件的內容。
- 我可以使用一些條件,如果window.fileReader支持則
後續「A」使用HTML5的代碼行,否則如果不支持那麼
使用一些其他的事情window.fileReader ...讀取文件 - 我也想知道如何讀取文件內容而不使用
HTML5 fileAPI ...但不使用ActiveXObject。
等待響應..