📅  最后修改于: 2022-03-11 15:02:15.345000             🧑  作者: Mango
// 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);
});