this 讲解

this

默认指代 window,在onclick函数里指代当前点击对象。

for(var i=0,i

阻止事件冒泡
e.stopPropagation() 非IE下
阻止浏览器默认行为
e.prevertDefault() 非IE下

你可能感兴趣的:(this 讲解)