$('tr').find(need help here).parent().css('backgroundColor', '#fcc');要对上述代码片段的“此处需要帮助”部分中的两个日期(两个字符串)执行不等性检查。
发布于 2010-07-01 03:25:13
不是一个线条,但如果你愿意,你可以放在一个线条上;)
$('tr').each(function(){
if(new Date($(this).find('td').first().html()) == new Date($(this).find('td').eq(2).html())){
$(this).css('backgroundColor', '#fcc'));
}
})https://stackoverflow.com/questions/3152508
复制相似问题