哪位大神告訴我$("")出來的結果的是什么數據類型,貌似可以用數組的方法,又有對象的結構,而且instanseof Array也是false,我快被整瘋了。這課程里多次提到是數組,明明不是數組?。。。。。。????
2015-11-21
為什么要用jQuery.fn這個所謂的命名空間,jQuery里又沒有多個命名空間,這個在這里有畫蛇添足的作用,直接去掉多好??????
2015-11-20
$("#test1").click(function(){
//直接處理
var foo = $('ul.first');
foo.find('.foo').css('background-color', 'red')
foo.find('.bar').css('background-color', 'green');
})
//直接處理
var foo = $('ul.first');
foo.find('.foo').css('background-color', 'red')
foo.find('.bar').css('background-color', 'green');
})
2015-11-19
這個數組模擬的有問題啊。this是指的這一個對象和方法的集合,this.length根本就不能代表到底有多少個元素,this.length就會報undefine啊
,行不通
,行不通
2015-11-10