在调用的函数中加入 xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");//这句很重要 xmlHttp.send(param);//然后发送带有param的参数(你应该知道的,get方式提交的话param为空)然后在你提交后