function insertAfter(newElement,targetElment) { var parent = targetElment.parentNode; if(parent.lastChild == targetElment) { parent.appendChild(newElement); } else { parent.insertBefore(newElement,targetElment.nextSibling); }}
添加回答
举报
0/150
提交
取消