监听设置
//添加setItemEvent监听事件
window.addEventListener("setItemEvent", function (e) {
//监听key为author的localstorage变化
if(e.key === 'author'){
}
});
移除监听
window.addEventListener("removeItemEvent", function (e) {
//监听key为author的localstorage变化
if(e.key === 'author'){
}
});