platform.browseForFolder

The 'browseForFolder' function displays the common 'Browse Folder' dialog box, whereby end-users can browse the file system and select a folder location.
browseForFolder函数用来显示浏览文件夹对话框

  • Prototype: platform.browseForFolder(sDescr, sInitDir);
  • Parameters:

    1. sDescr, a descriptive text;
      描述
    2. sInitDir: an initial directory;
      初始文件夹
  • Return Value: String, the selected folder path is returned, or 'undefined' on Cancel button pressed;

  • Example:

    var sDir=platform.browseForFolder('Please choose a folder', 'D:\\');