當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
javascript操作dom的一些函数
生活随笔
收集整理的這篇文章主要介紹了
javascript操作dom的一些函数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
getElementById(id)
getElementsByName(name)
getElementsByTagName(tagname) appendChild(node)
removeChild(childreference)
cloneNode(deepBoolean)
replaceChild(newChild, oldChild)
getElementsByName(name)
getElementsByTagName(tagname) appendChild(node)
removeChild(childreference)
cloneNode(deepBoolean)
replaceChild(newChild, oldChild)
轉載于:https://blog.51cto.com/gurder/96520
總結
以上是生活随笔為你收集整理的javascript操作dom的一些函数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IE8不兼容你的网页 怎么办? - 简单
- 下一篇: javascript 中的innerHT