求ajax的Content-Length: 0,导致error
var macv=document.getElementsByTagName('input')[maci].value;
$.ajax({type:'post',url:'http://wifi.tongxinmao?com/Public/macaddr',dataType:'text/html',contentType:'application/x-www-form-urlencoded',data:'{\"mac\":\"'+macv+'\"}',processData:true,
success:function(data)
{
if(data!=null&&data!='')
{
alert(data)
}
},
error:function(XMLHttpRequest,textStatus,errorThrown){alert(textStatus);}
});"
如上,contentType已经设置了:application/x-www-form-urlencoded,但是执行后,Content-Length: 0
造成error,求助。谢谢