52,782
社区成员
发帖
与我相关
我的任务
分享
///////////前面有代码,我只贴alert不出来这部分的代码。。。是jquery ajax的
if($(this).attr("ajaxurl")){
var inputobj=$(this);
alert("ajaxurl");//这里能alert出来。。。到ajax就不行了
$.ajax({
type: "POST",
url: inputobj.attr("ajaxurl"),
data: "param="+$(this).val(),
dataType: "text",
beforeSend:function(){alert(data +"#########" + url);},//这里就不行了。。。。就算url有问题,beforsend应该能行的啊。
success: function(s){
if(s=="y"){
inputobj.attr("valid","true");
$.fn.Validform.sn.showmsg(tipmsg.r,settings.tiptype,{obj:inputobj,type:2},"hide");
}else{
inputobj.attr("valid",s);
errorobj=inputobj;
$.fn.Validform.sn.showmsg(s,settings.tiptype,{obj:inputobj});
}
}
});
}
//////////后面也有,