ajax-post请求

一般来说字符串读取不出来查看下面这行代码是否加上:

xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');

xmlHttp.send(参数);

注:xmlHttp是定义的XMLHttpRequest对象

原文地址:https://www.cnblogs.com/sunshinekevin/p/7189947.html