var imgurl = plus.io.convertLocalFileSystemURL('_downloads/image');
console.log(imgurl)
plus.io.resolveLocalFileSystemURL(imgurl, function(entry) {
console.log('获取目录')
entry.getMetadata(function (metadata) {
console.log('目录属性')
console.log(metadata.size)
$('#cacheCount').html(metadata.size)
console.log(metadata.fileCount)
},function () {
console.log('获取目录属性失败')
},true)
},function () {
console.log('获取目录失败')
})
7***@qq.com
- 发布:2016-10-25 16:52
- 更新:2016-10-25 18:03
- 阅读:1614
1 个回复
DCloud_IOS_XTY
这么写