js中的节点的fristChild属性为什么的不到它的子节点啊?帮忙看一下哪出问题了?












    <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