Fork me on GitHub

转码解码代码

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

 

posted on 2015-05-29 18:26  雨为我停  阅读(345)  评论(0编辑  收藏  举报