标签:
1.IE与标准对事件处理的区别?
1.监听 标准 element.addEventListener(‘click‘,observer, useCapture); element.removeEventListener(‘click‘,observer, useCapture); IE element.attachEvent(‘onclick‘,observer); element.detachEvent(‘onclick‘,observer); 2.阻止冒泡 标准 event.stopPropagation(); IE event.cancelBubble = true; 3.阻止默认 标准 event.preventDefault(); IE event.returnValue = false; 4.event 标准 event IE8以下 window.event
2.new操作符具体干了什么
http://blog.vjeux.com/2011/javascript/how-prototypal-inheritance-really-works.html
标签:
原文地址:http://www.cnblogs.com/lixuemin/p/5719319.html