首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    javascript当中insertBefore的用法

    例 1.3(insertBeforeIEFF.html) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <head>     <meta http-equiv="content-type" content="text/html; charset=utf-8"/> </HEAD> <BODY>

    end
    insertedNode
    <script> var insertedNode = document.getElementById("insertedNode"); var aaa = document.getElementById("aaa"); var test = document.getElementById("contain"); /* 马克-to-win: first comment out the following statement, see the effect, then uncomment out the following statement, see the effect again. Node.insertBefore() (Method) This method inserts a child element into the collection at the indicated position.(qixy: here "contain" is a collecton.) 返回值:Property/method value type: Node object  JavaScript syntax: - myNode.insertBefore(aNode1, aNode2)  Argument list: aNode1 The node to be inserted  aNode2 The node indicating the insertion point

    02
    领券