この記事で使うイベントやメソッドなど .next(); .append(); .text(); .split(); $('.foo').each(function() { Do Something }); .getTime() Dateオブジェクト new Date()で現在の日付、時刻のオブジェクトを生成することが出来ます。よく使うDateオブジェクトのメソッドを紹介しておきます。 var today = new Date(); // 現在の日付、時刻のオブジェクト生成 var yy = today.getFullYear(); // 現在の年号を4桁で取得 var mm = today.getMonth(); // 現在の月を取得(0〜11) var dd = today.getDate(); // 現在の日を取得 var day = today.getDay(); // 現在の曜日を
![JavaScriptでNEWマークを自動的に追加する | A Day in the Life](https://cdn-ak-scissors.b.st-hatena.com/image/square/02ab3135d08e8b90ef66d3487d9225e360efe934/height=288;version=1;width=512/http%3A%2F%2Fwww.nk0206.com%2Flife%2Fassets_c%2F2014%2F03%2F14-03-30-addnew-thumb-200x200-658.png)