代码如下: function BrowseFolder(){ try{ var Message = “请选择文件夹”; //选择框提示信息 var Shell = new ActiveXObject( “Shell.Application” ); var Folder = Shell.BrowseForFolder(0,Message,0x0040,0x11);//起始目录为:我的电脑 //var Folder = Shell.BrowseForFolder(0,Message,0); //起始