jsonContent = encodeURIComponent(jsonContent);
而且json数据必须用双引号( 切记)。 @H_403_0@2.WebService:
[WebMethod] public static string SendEmail(string email,string jsonContent) { jsonContent = new Reports().DecodeUrl(jsonContent);//这里无法调用Server.UrlDecode,所以另写了个public方法。 return "success"; } public string DecodeUrl(string s) { return Server.UrlDecode(s); }