gpt4 book ai didi

javascript - 在 jquery 全日历 ver 2.x 上选择每一天

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:04:35 25 4
gpt4 key购买 nike

下面的代码是fullcalendrar jquery plugin 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 来选择遵循以下路径的每一秒 td(天时隙)

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

上面的jquery是否正确?

最佳答案

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

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

关于javascript - 在 jquery 全日历 ver 2.x 上选择每一天,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27229857/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com