内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用
我想让我的脚本高亮显示我选择的行,它工作得很好,但是当选中/突出显示一行时,如果选择了另一行,我希望它被“取消选中/取消突出显示”。我该怎么做?
下面是用于选择行的当前代码,它将取消选择,但只有当我再次单击同一行时:
$(".candidateNameTD").click(function() { $(this).parents("tr").toggleClass("diffColor", this.clicked); });
HTML表
<table id="newCandidatesTable"> <thead> <tr> <th style="cursor: pointer;">ID</th> <th style="cursor: pointer;">Navn</th> <th style="cursor: pointer;">Email</th> <th></th> </tr> </thead> <tbody> <% foreach (var candidate in Model.Ansogninger) { %> <tr id="<%= candidate.AnsogerID %>" class="newCandidatesTableTr"> <td><div id="candidateID"><%= candidate.AnsogerID %></div></td> <td><div id="<%= "candidateName_" + candidate.AnsogerID %>" class="candidateNameTD"><%= candidate.Navn %></div></td> <td><div id="candidateEmail"><%= candidate.Email %></div></td> <td> <div id="<%= "acceptCandidateButton_" + candidate.AnsogerID %>" class="acceptb" style="cursor: pointer; border: 1px solid black; width: 150px; text-align: center;">Godkend</div> </td> </tr> <% } %> </tbody> </table>
你可以首先取消选择所有行,例如
$(".candidateNameTD").click(function() { $(this).closest("tr").siblings().removeClass("diffColor"); $(this).parents("tr").toggleClass("diffColor", this.clicked); });
目前呼叫中心只有API文档,需要用户自己开发。如果用户需要saas系统的呼叫中心可以使用智能外呼机器人:https://cloud.tencent.com/product/ccsr
你有没有调整观众端表现,即通过对 LivePushConfig 中的homeOrientation设置项进行配置,它控制的是观众端看到的视频宽高比是16:9还是6:19,调整后的结果可以用播放器查看以确认是否符合预期。
控制台使用的是新的接口,批量创建子网,https://cloud.tencent.com/document/product/215/31960,可以指定路由表。terraform开发的时候是基于api2.0开发的,还没有这个接口,因此暂时无法使用