繁体   English   中英

在jquery完整日历ver 2.x上选择每一天的插槽

[英]Select every day slot on jquery full calendar ver 2.x

下面的代码是由fullcalendrar jquery插件ver 2生成的一段代码。它在它使用的类中从ver 1.x开始有所改变。

<div class="fc-slats">
    <table>
        <tbody>
            <tr>
                <td class="fc-axis fc-time fc-widget-content" style="width: 37px;"><span>07:00</span></td>
                <td class="fc-widget-content"></td>
            </tr>
            <tr class="fc-minor">
                <td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td>
                <td class="fc-widget-content"></td>
            </tr>
            <tr class="fc-minor">
                <td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td
                <td class="fc-widget-content"></td>
            </tr>
            <tr class="fc-minor">
                <td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td>             
                <td class="fc-widget-content"></td>
            </tr>
            <tr>
                <td class="fc-axis fc-time fc-widget-content" style="width: 37px;"><span>08:00</span></td>
                <td class="fc-widget-content"></td>
            </tr>
            <tr class="fc-minor">
               <td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td>
               <td class="fc-widget-content"></td>
            </tr> <!--etc-->
        <tbody>
    <table>
</div>

我想使用jquery选择遵循以下路径的每隔一秒(日插槽)

.$("fc-slats > table tbody tr").children.eq(1)

以上jquery是否正确?

你的jquery不正确。 您可以使用以下内容:

$(".fc-slats > table tbody tr").find("td:eq(1)")

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM