试试这个
jQuery
$('#toggle_icon').toggle(function() { $('#toggle_icon').text('-'); $('#toggle_text').slideToggle();}, function() { $('#toggle_icon').text('+'); $('#toggle_text').slideToggle();});HTML
<a href="#" id="toggle_icon">+</a><div id="toggle_text" > Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</div>



