JavaScript (Append, insert, replace, delete) The contents of this study: Document.queryselector ('. Container ') This is the one that can find a single " ID label and class label "Document.queryselectorall ('. Container ') This is the ability to find all" Li tags and Class labels "container.appendchild ( IMG) This is an append sub-label to the container tag container.firstelementchild This is in (Google Browser compatible), the function is to find cont Ainer the first sub-label under the label Container.firstchild; This is in the (IE8 compatible) function is to find the first sub-label under the Container tab container.lastelementchild This is in the (Google Browser compatible) feature is to find the last sub-tab under the Container tab container.lastchild; &NB Sp This is in (IE8 compatible), the function is to find the last sub-label under the Container tab Container.insertbefore (IMG,FIRSTIMG); This is the container label sub-label to insert function, parameter one is to insert the label, the next parameter is to be inserted in that node Container.replacechild (img,lastimg); &Nbsp; This is the label for the container tag, then replace the label under this tag, there are two parameters, one is to replace the label, and the other is the label to be replaced
<! DOCTYPE html> JavaScript makes images (append, insert, replace, delete)