$
.ajax({
url
:page
,
data
:{"name":value
},
success
:function(result
){
$("#checkResult").html(result
);
}
});
$
.get(
page
,
{"name":value
},
function(result
){
$("#checkResult").html(result
);
}
);
$
.post(
page
,
{"name":value
},
function(result
){
$("#checkResult").html(result
);
}
$("#checkResult").load(page
,{"name":value
});
<div id
="checkResult"></div
>
<p
>输入账号:
<input id
="name" type
="text"></p
>
<script src
="JQuery.js"></script
>
<script
>
$(function(){
$("#name").keyup(function(){
var value
=$(this).val();
var page
="...checkName.jsp?";
</script
>
转载请注明原文地址: https://mac.8miu.com/read-496428.html