taType:"json",
					url:"/JWT/servlet/getInfo",
					headers:{
						token:localStorage.getItem("token")//将token放到请求头中
					},
					success:function(resp){
						alert(resp.msg);
						if(resp.success){
							$('body').append(JSON.stringify(resp.data));
						}
					}
				});
			});
			
			$("#loginout").on("click",function(){
				localStorage.removeItem("token");
				location.href="login.html";
			});
		</script>
	</body>
</html>
