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>

関連記事

スポンサーリンク

ACOS関数 逆コサイン(アークコサイン)

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る