$("#test2").toggle(
function{$("#test2").css('color','blue')},
function{$("#test2").css('color','red')}
)
怎么實(shí)現(xiàn)多次點(diǎn)擊切換不同顏色
function{$("#test2").css('color','blue')},
function{$("#test2").css('color','red')}
)
怎么實(shí)現(xiàn)多次點(diǎn)擊切換不同顏色
2017-09-24
這一節(jié)我完全不明白說(shuō)什么.到底是什么意思,誰(shuí)能用大白話說(shuō)一下?我前面只學(xué)了html+css+js基礎(chǔ),就直接到這里了.
2017-09-23
額,剛開(kāi)始一直查.?($('p:last').?( $(".first-div").text() ) )到底是什么意思。坑爹
2017-09-22
function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context, rootjQuery ); }
我的少了一句沒(méi)事吧?
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context, rootjQuery ); }
我的少了一句沒(méi)事吧?
2017-09-20
this 是JavaScript中的關(guān)鍵字,指的是當(dāng)前的上下文對(duì)象,簡(jiǎn)單的說(shuō)是方法/屬性的所有者,this是動(dòng)態(tài)的。
2017-09-20