Ajax,post提交,空值问题
ajax,post方式提交数据,当设置请求头写错时,也会导致取不到值
如://xhr.setRequestHeader('content-type','application/x-www-form-urlencoded');
application写成applicaton,unrencoded写成urlencode
当然,如果参数名和取值的时候不一致那肯定会取不到了。
Never frown, even when you are sad, because you never know who is falling in love with your smile.
纵然伤心,也不要愁眉不展,因为你不知道谁会爱上你的笑容。