📜  cordova 删除缓存 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:15.345000             🧑  作者: Mango

代码示例1
// download this plugin. it reset cache on internal browser
cordova plugin add cordova-plugin-cache-clear

// use this function in index.js or on main html
document.addEventListener('deviceready', function() {
    var success = function(status) {
        alert('Message: ' + status);
    };
    var error = function(status) {
        alert('Error: ' + status);
    };
    window.CacheClear(success, error);
});