存入本地中:localStorage.setItem('Code',‘10001’) 获取:localStorage.getItem('Code') 转载于:https://www.cnblogs.com/zxh8080/p/5741489.html