<script>
$("#oth").click(function() {
$("#foli9").show("slow");
});
$("#fam").click(function() {
$("#foli9").hide(1000);
});
</script>
是否有可能在哪里选择了ID“#fam”来选择多个ID。像“#fam,#test,#another”?jQuery id class selctions“.click”
所以点击它会适用于多个ID?
我认为使用类而不是IDS它是一个更好的方法,也应该研究一下之前问这个qustiong谷歌:'选择不同的ids jquery'第一个结果'http://api.jquery.com/multiple - 选择器/' – ncubica 2014-11-03 23:56:41