<script language="javascript">
$(function(){
function send(){
alert($("#s").text());
}
})
</script>
<body >
<a href="javascript:void(0);" onclick="javascript:send();">回复</a><div id="s">nihao</div>
send方法必须要在$(function(){});里面,怎么打印出div的文本
------解决方案--------------------
$.ajax({
url: "url",
dataType: 'html',
success: function(shtml){
$(div).html(shtml);
}
});