While we're doing amazing things with JavaScript on the server side, it's important not to take our eyes off of some of the great stuff happening on the client side. One such awesome project I recently discovered was JSZip: a JavaScript library that allows you to easily generate ZIP files from the front-end. And why is that useful? You can allow users to select and download images from a gallery or just about anything else. Let's have a look at how JSZip allows you to generate structured Zip files from the client side!
尽管我们在服务器端使用JavaScript进行了许多令人惊奇的事情,但重要的是,不要忽视客户端上发生的一些很棒的事情。 我最近发现的一个如此出色的项目是JSZip :一个JavaScript库,可让您轻松地从前端生成ZIP文件。 那为什么有用呢? 您可以允许用户从图库或几乎所有其他内容中选择和下载图像。 让我们看看JSZip如何允许您从客户端生成结构化的Zip文件!