function check()
{
var id=document.getElementById("xh");
if(text.value==null || text.value==" "){
alert("请输入学号!");
retrun false;
}
}
</script>
<body>
<div class="listDIV">
<table border="1" width="50%" height="50%" style="text-align: center;">
<form action="<%=basePath%>user/one" method="post">
<input type="text" id="xh" name="student_id" placeholder="根据学号查询">
<button class="glyphicon glyphicon-select" onclick="check()">查询</button>
</form>
写的SSM增删改查,JS不太会。。。。。