$('#div').children().each(function(){ //$(this)用来表示当前元素 alert($(this).text());});//该片段来自于http://www.codesnippet.cn/detail/200820135235.html
来源: http://www.codesnippet.cn/detail/200820135235.html