0

为什么此代码在 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;
}
4

1 回答 1

0
 Contents1 = Stream.Read(-1); //-1 adReadAll
于 2012-04-30T11:23:59.980 回答