当前位置: 代码迷 >> 综合 >> Uncaught TypeError: $(...).eq(...).show(...).siblings.hide is not a function at HT
  详细解决方案

Uncaught TypeError: $(...).eq(...).show(...).siblings.hide is not a function at HT

热度:93   发布时间:2024-02-10 06:19:55.0

$("#content div").eq(index).show().siblings().hide();

在写淘宝轮播图时出现报错

index.html:56 Uncaught TypeError: $(…).eq(…).show(…).siblings.hide is not a function at HT

问题在于siblings没有加().

  相关解决方案