$("#content div").eq(index).show().siblings().hide();
在写淘宝轮播图时出现报错
index.html:56 Uncaught TypeError: $(…).eq(…).show(…).siblings.hide is not a function at HT
问题在于siblings没有加().
$("#content div").eq(index).show().siblings().hide();
在写淘宝轮播图时出现报错
index.html:56 Uncaught TypeError: $(…).eq(…).show(…).siblings.hide is not a function at HT
问题在于siblings没有加().