localStorage.setItem("addToken",e.data.token );
1.存数据 (以token为例)
var token= localStorage.getItem("addToken")
2.根据你去的key(键名)取 token
location.href='http://www.exam.com/admin/userindex?token='+token;
3.token的使用(结合)jwt token 鉴权使用
(PHP tp6 jwt token 鉴权)-》链接