$(document).ready(function() {
$('p:eq(1)').hide();
$('span.more').click(function() {
$('p:eq(1)').show();
$(this).hide();
});
});
目的是为了显示出来,为什么还要使用$(this).hide();?
$('p:eq(1)').hide();
$('span.more').click(function() {
$('p:eq(1)').show();
$(this).hide();
});
});
目的是为了显示出来,为什么还要使用$(this).hide();?
this 对象作用域变了