标签:cli pre art logs == article htm function i++
<div class="method-2-wrap wrap"> <div class="faa1">功能</div> <div class="title"> <article>测试</article> <article>测试</article> <article>测试</article> <article>测试</article> </div> <div class="content">点击</div> </div> <div class="method-2-wrap wrap"> <div class="faa1">功能</div> <div class="title"> <article>测试</article> <article>测试</article> <article>测试</article> <article>测试</article> </div> <div class="content">点击</div> </div> <script type="text/javascript"> $(function(){ var i=0; $(".content").click(function(){ i++; i%2 !==0 ? $(this).siblings("div.title").css({‘height‘:‘400px‘}) : $(this).siblings("div.title").css({‘height‘:‘100px‘}); }) }) </script>
标签:cli pre art logs == article htm function i++
原文地址:http://www.cnblogs.com/tiantianleyuan123/p/6933845.html