appendChild()相当于jquery的append()
insertBefore()相当于jquery的prepend(),示例:insertBefore(h1,div.firstChild);//把h1插入到div元素内部的第一个字节点的前面
appendChild()相当于jquery的append()
insertBefore()相当于jquery的prepend(),示例:insertBefore(h1,div.firstChild);//把h1插入到div元素内部的第一个字节点的前面