ajax post提交设置请求头xhr.setRequestHeader(‘Content-Type’, 'application/json提交不了,报错说跨域了
但是xhr.setRequestHeader(“Content-Type”, “application/x-www-form-urlencoded”);就可以提交啊好奇怪
↧
求助 ajax post提交设置请求头xhr.setRequestHeader('Content-Type', 'application/json提交不了,
↧