摘要:
1 function createFunctions(){ 2 3 var result = []; 4 5 for(var i = 0; i < 10; i++){ 6 result[i] = function(){ 7 return i; 8 }; 9 console.log(i);10 }11 console.log("最终i : ", i);12 13 //return result;14 ... 阅读全文
posted @ 2013-10-15 16:26
楚玉
阅读(147)
评论(0)
推荐(0)
摘要:
1 holdPostion : function(){ 2 var $cont = $(".cont"), 3 $guide = $(".guide"), 4 offset = $guide.offset(), // jQuery 的 offset() 是相对于 document文档的 偏移 -- 、js 的 offsetLeft 是相对于定位的 Parent 偏移 5 t = offset.top, 6 l ... 阅读全文
posted @ 2013-10-15 13:32
楚玉
阅读(546)
评论(0)
推荐(0)

浙公网安备 33010602011771号