解决ajax提交中文数据乱码
function replaceWord(date,wordurl){
$.ajax({
url : 'wordReplace',
type: "POST",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data :
{
date : date,
wordurl : wordurl
},
dataType : 'json',
success : function(){
alert("success");
},
error : function(){
alert("error");
}
});
}