Home >Web Front-end >JS Tutorial >jQuery plug-in zepto.js simply implements tab switching_jquery
Old rule, post the code first
<script> $(function(){ window.onload = function() { var $li = $('.taocan-title li'); var $ul = $('.taocan-content .con110'); $li.mouseover(function(){ var $this = $(this); var $t = $this.index(); $li.removeClass(); $this.addClass('active'); $ul.css('display','none'); $ul.eq($t).css('display','block'); }) } }); </script>
The above is the entire content of this article, I hope you all like it.