Var file=enclosing files [0];
Window. The UN=new UnZipArchive (file);
UN. GetData (function () {
Var arr=UN. However, ();
Var STR="";
for(var i=0; i
/* UN. GetEntry (arr) [I]. Arr [I]; */
Var TXT=arr [I] charAt (arr [I] length - 1);
The console. The log (" terminator: "+ TXT);
If (TXT! {
="/")
STR +="& lt; Li onclick=showContent (" "+ arr [I] +" ") & gt;" + + arr [I] ";
}
}
$(" # dir "). The HTML (STR);
});
});
How do you spell arr [I] is the file name and path, in the end of the file content is displayed, showContent () method of how to write, ask the great spirit show
CodePudding user response:
2021, the original poster can have a solution?