日期:2014-05-16 浏览次数:20450 次
$('table.timetable th').each(function(index){ 
        var text= $(this).text();
                    
        [color=#FF0000]$(nday).each(function(i){
                    //alert('....') 加断点才会运行    
        if(day[text]==nday[i]){     //day,nday是数组
            $('table.timetable').find('td')
                                                                          .filter(':nth-child('+(index+1)+')')
                                                                          .addClass('cannotchoose');        
                      }
                    });    [/color]
                                            });