ZIP

解压zip文件

代码实例

1.module.controller('MyCtrl', function($scope, $cordovaZip) {
2.
3. $cordovaZip
4. .unzip(
5. src, // https://github.com/MobileChromeApps/zip/blob/master/tests/tests.js#L32
6. dest // https://github.com/MobileChromeApps/zip/blob/master/tests/tests.js#L45
7. ).then(function () {
8. console.log('success');
9. }, function () {
10. console.log('error');
11. }, function (progressEvent) {
12. // https://github.com/MobileChromeApps/zip#usage
13. console.log(progressEvent);
14. });
15.});