- $(document).ready(function(){
- $('.portfolio li').click(function() {
- var new_feature = $(this);
- if (!new_feature.hasClass('feature')){
- $('li.feature').removeClass('feature');
- setTimeout(function(){
- new_feature.addClass('feature');
- }, 500);
- }
- });
- });
- //该片段来自于http://www.codesnippet.cn/detail/250220148785.html
来源: http://www.codesnippet.cn/detail/250220148785.html