js代码中:

转码:encodeURIComponent、encodeURI

 data.des = encodeURIComponent(UE.getEditor('editor').getContent());

 

解码:decodeURI、decodeURIComponent

 

 

页面当中解码:

<div class="view-list-pro1">@(Html.Raw(HttpUtility.UrlDecode(item.Introduction.ToString())))</div>

 

页面转码

HttpUtility.UrlEncode

 

相关文章:

  • 2022-01-26
  • 2021-04-27
  • 2022-01-15
  • 2021-10-29
  • 2022-12-23
  • 2021-05-25
  • 2022-01-17
猜你喜欢
  • 2021-12-05
  • 2021-08-30
  • 2022-02-10
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
相关资源
相似解决方案