<script type="text/javascript">
$(function () {
$("#btn_reg").click(function () {
if ($("#txtusername").val().length == 0) {
showmes("用户名不能为空!");
return;
}
$.post("/Resources/user_reg.ashx", { "txtusername": $("#txtusername").val(), "txtuserpwd": $("txtuserpwd").val() }, function (data) {
if (data == "ok") {
showmes("注册成功!");
}
else {
showmes(data);
}
})
})
})
</script>
post基本格式
最新推荐文章于 2023-04-08 10:32:31 发布