摘要:
块级:div ul ol li dt dd nav header footer p h table iframe address行内:input omg span strong del small u ins button code select meta 阅读全文
摘要:
1、Jquery循环绑定事件有一个坑----总是绑定最后一个元素。2、其实类似闭包:for(var I = 0; I < 2; I++){ btns[I].onclick = function (){ alert(i); I = I + 1; } } 阅读全文
摘要:
全局环境下,指向windowsconsole.log(this.document === document); // true函数上下文调用function f1(){ return this;} f1() === window; // true对象中的this对象内部方法的this指向调用这些方法的对象,函数的定义位置不影响其this指向,1. this指向只和调用函数的对象有关。... 阅读全文