<script type="text/javascript">
$("#btn").click(function(){
$.ajax({
url:"${pageContext.request.contextPath}/user/validuserInCode",
type:"post",
data:{
phone:$("input[name=phone]").val()
},
dataType:"json",
success:function(result){
}
});
});
</script>