解决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");
            }
            
        });
        
    }

原文地址:https://www.cnblogs.com/guolsblog/p/5945499.html