Ajax 设置请求头和传参

上代码 设置请求头 -----b.setRequestHeader(‘Content-Type’,‘application/x-www-form-urlencoded’) ------其中b是自己在上面定义的变量 -----Content-Type:设置请求体内容的类型 -----application/x-www-form-urlencoded:设置参数的类型(a=100&b=200&c=300
相关文章
相关标签/搜索