读书人

servlet ajax 校验后盾用户

发布时间: 2013-11-06 16:26:37 作者: rapoo

servlet ajax 校验后台用户

function subAjax(){

?

function subAjax(){?

? ? ? ?$.post("dataelement.do?type=queryById&exportSfCardId="+encodeURI(encodeURI($("#exportSfCardId").val() ) ),

? ? ? ?function(wjy){ ?

? ? ? ?if(wjy==1){ ?

? ? ? ? ? ? ? ?alert("您输入的身份证号已存在!"); ?

? ? ? ? ? ?}?

? ? ? ? ? ?

? ? ? ?}); ?

? ?} ?

后台是servlet 用?if (srt.getResult().equals("1"))?

{?

PrintWriter out = response.getWriter();

out.println("1");

? ? ? ?out.flush();

? ? ? ?out.close();

}?

?

读书人网 >Ajax

热点推荐