Object.toString
オブジェクトを文字列に変換する
構文
object.toString()
例文
<html> <head> <title>Object.toString</title> </head> <body> <!--オブジェクトを文字列に変換するのサンプル--> <script type="text/javascript"> var obj = {"a":1, "b":2}; document.write(obj.toString()); </script> </body> </html>
関連記事
スポンサーリンク