$('#div').children().each(function(){ //$(this)用来表示当前元素 alert($(this).text()); });