1. 程式人生 > >javascript之DOM技術(一)

javascript之DOM技術(一)

None.gif方法                                                               IE                               FF
None.gifcreateAttribute(name)                                 Y                                Y
None.gifcreateCDATASection(text)                        N                                Y
None.gifcreateComment(text)                                    Y                                Y
None.gif
createDocumentFragment()                        Y                                Y
None.gifcreateElement(tagName)                             Y                                 Y
None.gifcreateEntityReference(name)                     N                                 Y
None.gifcreateProcessingInstruction(
None.giftarget,data)                                                   N                                  Y
None.gif
createTextNode(text)                                  Y                                   Y