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