JavaScript中如何区分LocalStorage和SessionStorage的适用场景?