服务端用 HttpUtility.UrlEncode(v.Content).Replace("+", "%20"); //因为 content里有空格的话 ,编码后空格会变成 “+”
客户端: decodeURIComponent(content) // unescape之类已经废弃了
注意: 用习惯了 $(o).text(); //这个会自动编码 <a> 之类的标签会以文本显示 $(o).html() 直接显示内容 <a> 会起作用