摘要:
事件委托好处:1.提供性能。2.添加元素仍然有以前的事件效果。js片段window.onload = init;function init(){ var oUl =document.getElementById('ul'); var oInput = document.getElementById('input'); var iNow =4; oInput.onclick = function(){ iNow++; var oLi = document.createElement('li'); oLi.innerHTML = "&quo 阅读全文
posted @ 2013-03-04 14:42
apple_半个苹果
阅读(175)
评论(0)
推荐(0)
浙公网安备 33010602011771号