<html>
    <head>
        <title>creatElement() Example</title>
        <script type="text/javascript">
            function add(){
                var op = document.creatElement("p");
                var oText = document.createTextNode("Hello world");
                op.appendChild(oText);
                document.body.appendChild(op);
            }
        </script>
    </head>
    <body onload="add()">
    </body>
</html>
语法应该没错。我用aptana写的,也没报错,但是firebug说是 document.creatElement is not a function