ajax-post请求

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

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

xmlHttp.send(参数);

注:xmlHttp是定义的XMLHttpRequest对象

posted @ 2017-07-16 11:03  赤子说  阅读(103)  评论(0编辑  收藏  举报