请问在struts2框架中,如何用js发送ajax请求到一个action,现有一个test.jsp,

2025-01-24 00:52:38
推荐回答(1个)
回答1:

$.post("/meileishuo_wy/mls/ctrol/regedit/regeditAction/exists",{'userinfo.ufnum':$("#ph").val()},function(txt){

$("[role='ph']").html("");
$("#ph").parent().find("i").remove();

if(txt==1){
$("[role='ph']").html("手机号码已经被注册了,请重新更换一个手机号码");

}

});