注意content-type的写法以及method写法的不同
angular写法
$http({
url: config.lang,
headers:{
"Content-Type":"application/json"
},
data: dataLang,
withCredentials: true,
method: 'put',
}).then(function (res) {}
jquery写法
$.ajax({
url: config.lang,
contentType: 'application/json',
data: dataLang,
withCredentials: true,
type: 'put',
success: function(response) {}