摘要:
在某些情况下,我们调用Javascript函数时候,this指针并不一定是我们所期望的那个。例如: 1 //正常的this使用 2 $('#myElement').click(function() { 3 4 // 这个this是我们所期望的,当前元素的this. 5 6 $(t... 阅读全文
摘要:
1 function bindReady(){ 2 if ( readyBound ) return; 3 readyBound = true; 4 5 // Mozilla, Opera and webkit nightlies c... 阅读全文