简体   繁体   中英

What kind of function is this in JavaScript?

I saw this on a forum and I was wondering what it was. If I can get anybody's response it would be very appreciated.

var fso = new ActiveXObject ("Scripting.FileSystemObject");

Can you tell me what it does and what browsers support it. Thanks.

What it does is give access to your local filesystem on your PC. It is only supported by Internet Explorer.

It's a function which constructs a FileSystemObject in JScript (Microsoft's version implementation citation from MSDN of JavaScript). This sort of object provides access to a computer's file system.

ActiveX is only supported by Internet Explorer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM