new

新しくオブジェクトを生成します。

構文

生成されたオブジェクト = new オブジェクト

例文

<html>
 <head>
  <title>new</title>
</head>
 <body>
  <script type="text/javascript"><!--
  dateObj = new Date();
  document.write(dateObj);
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

『Table is marked as crashed and should be repaired』の修復方法

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

上に戻る