//在現有元素後面加上一個新元素function insertAfter(newElement, targetElement){
var parent = targetElement.parentNode;
if (parent.lastChild == targetElement){
parent.appendChild(newElement);
} else { else>parent .insertBefore(newElement,targetElement.nextSibling);
}
}