localStorage.setItem("token", value); localStorage.getItem("token");
如果需要保存多种参数,可以把set和get各写成一个function,方便调用。