为什么此代码在 Internet Explorer 9 中不起作用?
function GetFile(FileName) {
var Contents1=null;
var Stream;
Stream = new ActiveXObject("ADODB.Stream")
Stream.Type = 1 //Binary
Stream.Open()
Stream.LoadFromFile(FileName)
Contents1 = Stream.Read()
FileSize = Stream.Size
Stream.Close()
return Contents1;
}