2014-06-09 5 views
0

와 디렉토리를 만듭니다JS와 폴더를 만드는 방법 JS

var sFolderPath = 'images'; 
    var fso = new ActiveXObject('Scripting.FileSystemObject'); 
    if (!fso.FolderExists(sFolderPath)) { 
     fso.CreateFolder(retVal); 
     return; 
     } 

나는이 오류가있어 : Uncaught ReferenceError: ActiveXObject is not defined

내가 "ActiveXObject"오직 IE에서 작동, 그래서 내가 작업 할 다른 솔루션이 필요하다는 것을 알고를 모든 브라우저 ..

답변

1

ActiveXObject 만 지원합니다. 다른 브라우저에서이 작업을 시도하는 경우에는 지원되지 않습니다.