经php中urlencode编码后用js的decodeURIComponent将之还原

经php中urlencode编码后如何用js将之还原
例如

  1.  
  2. $str = 'http://ss.com';
  3. $str = urlencode($str);
  4. echo "<script type="\'text/javascript\'">    var s = decodeURIComponent(\'".."\');  document.write(s)</script> ";
  5.  

上一篇: file_get_contents('php://input')   下一篇: lxblog6.0整合ucenter接口文件

提交疑问

请先登录 QQ微博登录

回顶部