我希望有人可以帮助我从帖子中定位日期
从此“2013 年 2 月 27 日星期三 09:00:00 +1100”
对此
<span class="day">27</span>
<span class="month">Feb</span>
忽略年份和时间。我的想法是,然后我可以设置日期和月份的样式,使其位于标题的左侧。
然后,班级日期和月份可以坐在一个带有深色背景的父 div 中,例如1 http://www.canberra.edu.au/media/test/date.jpg
我猜是这样的?
$("h6").html(function(index, old) {
return old.replace(some regular expression/, '<span class="day">$1</span><span class="month>$2</span>"');
});
提前致谢