标签:ide script func tab ext apple his 结构 span
<script type="text/javascript">
$("button").on("click",function(){
var index=$(this).index();//下标,相当于js中的for循环
$("div").eq(index).show().siblings("div").hide();
})
</script>
//html结构自行添加
标签:ide script func tab ext apple his 结构 span
原文地址:http://www.cnblogs.com/yn-cn/p/6964677.html