日期:2014-05-16 浏览次数:20488 次
<html>
<head>
<script type="text/javascript">
window.onload=function()
{
var e = document.getElementById("pp");
var str=e.firstChild.nodeValue
alert(str);
}
</script>
</head>
<body>
<p id="pp" title="pTitle" >ABCDEFG</p>
</body>
</html>