开启关闭功能没有生效的原因


tr的id和target的id不一致。


<tbody>
        <tr <span style="color:#ff0000;">id="homepage_video-13</span>" class="homepage_video" data-sort-path="/homepage_videos/13/sort">
  <td class="sequence">
    <span class="handle">
      <span></span>
      <span></span>
    </span>
    3
  </td>
  <td class="show_id">a803862414c711e5b2ad</td>
  <td class="title">夏洛特烦恼</td>
  <td class="large_horizontal_image"><img src="http://r2.ykimg.com/050C000055E95E6367BC3C11430981EB" alt="050c000055e95e6367bc3c11430981eb"></td>
  <td class="created_by">王</td>
  <td><a class="active_toggle" data-confirm="确定关闭吗?" <span style="color:#ff0000;">data-target="#homepage-video-13"</span> data-active="true" data-remote="true" rel="nofollow" data-method="patch" href="/homepage_videos/13/toggle_active.json"><i class="fa fa-check-square-o"></i></a></td>
  <td>
    <a class="btn btn-default btn-xs" href="/homepage_videos/13">详情</a>
    <a class="btn btn-default btn-xs" href="/homepage_videos/13/edit">编辑</a>
    <a data-confirm="Are you sure?" class="btn btn-xs btn-danger" rel="nofollow" data-method="delete" href="/homepage_videos/13">删除</a>
  </td>
</tr>


你可能感兴趣的:(开启关闭功能没有生效的原因)