$.ajax({url:"checkcode.action",type:"post",async:false,data:{chkCode:function(){return $('#chkCode').val();}},dataType:'json',dataFilter:function(data,type){console.log(data);console.log(data.checked+" "+data.chkCode);result = data.checked;//这个result在ajax外定义了console.log("result:"+result);}});这是我ajax部分的代码,在fire debug中,我输出了data,另外也尝试输出data.checked 和data.chkCode但是,都是undefined,这到底是哪里错了,求高手指教!!
添加回答
举报
0/150
提交
取消