`
pouyang
  • 浏览: 313132 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

JS 加码解码

阅读更多
<script>
//javascript加码解码
var objUrl = "http://www.iteye.com";
alert(encodeURI(objUrl));
alert(encodeURIComponent(objUrl));
var objUrl2 = "http%3A%2F%2Fwww.iteye.com";
alert(decodeURI(objUrl2));
alert(decodeURIComponent(objUrl2));
</script>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics