decodeURIComponent
URLデコード
構文
decodeURIComponent(URIstring)
引数
URIstring=文字列例文
<html> <head> <title>decodeURIComponent</title> </head> <body> <!--URLデコードのサンプル--> <script type="text/javascript"> var test1="http://www.yahoo.co.jp/"; document.write(encodeURIComponent(test1)+ "<br>"); document.write(decodeURIComponent(test1)); </script> </body> </html>
関連記事
スポンサーリンク