摘要:
1 function Obj () { 2 } 3 Obj.a=0; 4 Obj.fn=function(){ 5 } 6 console.log(Obj.a); //0 7 console.log(typeof Obj.fn);//function 8 var o=new Obj(... 阅读全文
摘要:
//1,闭包 1 $(document).ready(function(){ 2 var spans=$("#divTest span"); 3 for(var i=0;i");3 function innerFn(){4 document.write("Inner function");5 }6 ... 阅读全文