首页 > 技术文章 > 用jquery的ajax传中文乱码

D-not 原文

contentType: 'application/x-www-form-urlencoded; charset=UTF-8',

$.ajax({
type: 'POST',
url: url,
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
data:
{
stkey:"中文"
},
success:function(result){ },
error:function () { }
});

推荐阅读