清除缓存

//清除缓存
$(".mui-table-view").on("tap", ".cache", function(e) {
plus.cache.calculate(function(size) {
// console.log("size"+size);
sizeCache = size;
mui.confirm("您目前的系统缓存为" + parseFloat(sizeCache / (1024 * 1024)).toFixed(2) + "M,清除缓存须要从新登陆?", "清除缓存", ["取消", "确认"],
function(e) {
if(e.index == 1) {
plus.cache.clear(function() {
alert("缓存清除完毕");
outLoginFun();
});
}
});
});
}) 缓存