html部分代码如下:

<button type="button"  id="Refresh">恢复默认</button>

js部分代码如下:

//清除缓存
$("#Refresh").click(function() {
	window.localStorage.clear(); //清除缓存
});
Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐