标签:http os io cti amp res js jquery
前台
jQuery.post("/MailTemplate/SaveMailTemplate?Code=" + item.Code + "&DisplayName=" +encodeURI (item.DisplayName) + "&Body=" +encodeURI(item.Body), {}, function (data) {
if (data == ‘Success‘) {
} else {
ShowMessBox(data.Mess);
}
});
后台
[HandleError]
[HttpPost]
public JsonResult SaveMailTemplate(MailTemplate m)
{
mailTemplate.UpdateMailTemplate(m.Code, HttpUtility.UrlDecode(m.Body), HttpUtility.UrlDecode(m.DisplayName));
return Json("Success");
}
jquery的ajax()函数传值中文乱码解决方法介绍,布布扣,bubuko.com
标签:http os io cti amp res js jquery
原文地址:http://www.cnblogs.com/dongbo19910728/p/3875577.html