<p id="p">明天上课</p>
</form>
var node1=document.getElementById("p");
//alert(node);
var textNode = node1.fristChild;
alert(textNode);
alert(textNode.nodeValue);
</script>
node1.firstChild; firstChild你拼错了
alert( textNode); 弹框出来是undefined