classification

javascript 获取多个id(原生js,非jquery)

javascript insertAfter method

face posted @ 2012年3月22日 00:04 in javascript with tags javascript 方法 , 1430 阅读

 

//insertAfter method
function insertAfter(newElement,targetElement) {
	var parent = targetElement.parentNode; 
	if (parent.lastChild == targetElement)  parent.appendChild(newElement); 
		else parent.insertBefore(newElement,targetElement.nextSibling); 
}
전설 서구 说:
2021年3月01日 18:41

I would like to say that this blog really convinced me to do it! Thanks, very good post. 123movies site


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter