DOM Storage解决 代码 window.sessionStorage.setItem(“key1”, a); var value1 = window.sessionStorage.getItem(“key1”);