HTML:
<li>Tue, 15th May 2012 10:11</li>
<li>Tue, 15th May 2012 10:12</li>
<li>Tue, 15th May 2012 10:13</li>
<li>Tue, 15th May 2012 10:14</li>
<li>Tue, 15th May 2012 10:15</li>
<li>Tue, 16th May 2012 21:08</li>
<li>Tue, 16th May 2012 21:07</li>
<li>Tue, 16th May 2012 21:06</li>
<code></code>
jQuery:
$("li").each(function () {
words = $(this).text().split(' ');
xxx = words[1]+" "+words[2]+" "+words[3]+",";
$("code").append(xxx);
});
私は今このステップに来ていますが、重複する日付を確認して一意の日付を追加する方法がわかりません
デモ: http: //jsfiddle.net/4kvUy/