angularjs中使用http post方式提交注册表单中文乱码 求解决!!!急急急!!!!!
$http(
{
method : 'POST',
url : 'http://localhost:8080/memberRegister.htm',
params : {
'nickname' : nickname,
'password' : password,
'telephone' : telephone
},
headers : {
'Content-Type' : 'application/x-www-form-urlencoded;charset=utf-8'
}
}).success(
function(data, status, headers, config) {
console.log(data,status,headers,config);
}).error(
function(data, status, headers, config) {
console.log(data,status,headers,config);
$ionicPopup.alert({
title : '提示框',
template : '请检查网络'
});
});
传到服务器的是乱码 nickname: "%25E7%259A%2584%25E7%259A%2584"
求助求助