我使用下面的代码在客户端读取ZIP文件
var Zfile = new Zipfile( $('#xfilex').val() );
var file = Zfile.entries[0];
// From Here file reading continues... I am giving this to say what I am trying to accomplish
if(file)
{
var reader;
reader = new FileReader();
reader.readAsText(file, "UTF-8");
reader.onload = loaded;
}
但我无法阅读该文件...请帮我在上面的代码中找到错误。它是纯JavaScript,并从Unzipping files问题中引用。我希望我能得到帮助。