<html>
<head>
<title></title>
</head>
<body>
<span class="searchTpyeText">按手机号查询</span>
<form>
<div class="phoneContent">按手机号查询</div>
<label>
<input id="telData" class="search" type="text" value="输入手机号" οnfοcus="if(this.value == '输入手机号')this.value = '';" οnblur="if(this.value == '' || this.value == null)this.value = '输入手机号';" />
<input id="telFind" class="button" type="button" value="搜索"></input>
</label>
</form>
var telData="";
$('#telFind').click(function(){
telData = $('#telData').val();\
$.ajax({
url:"${pageContext.request.contextPath }/record"+'/1/10?tel='+telData,
type:"get",
contentType:"application/json;charset=utf-8",
dataType:"json",
success:function(data){
$('#telData').val('');
}
});
});
</body>
</html>
转载于:https://blog.51cto.com/yuanyi860829/1907081