變量a
始終是#u-about
,#u-projects
,#u-contact
,#u-follow
中的一個。
如何使該功能不帶動畫a
?jQuery函數的例外
function bla(a) {$('#u-about, #u-projects, #u-contact, #u-follow').animate(...);
變量a
始終是#u-about
,#u-projects
,#u-contact
,#u-follow
中的一個。
如何使該功能不帶動畫a
?jQuery函數的例外
function bla(a) {$('#u-about, #u-projects, #u-contact, #u-follow').animate(...);
使用.not()
選擇器從一個jQuery對象中排除特定變量或選擇器。
$('#u-about, #u-projects, #u-contact, #u-follow').not(a).animation
我認爲'a'指的是一個對象,而不是錨標籤。 – 2013-04-06 17:35:49
它不起作用。雖然「a ='#u-about'」「函數bla(a){$('#u-about,#u-projects,#u-contact,#u-follow')而不是(a).animate (「什麼也不做,但是 」函數bla(a){$('#u-projects,#u-contact,#u-follow')。animate(「works。 – 2013-04-06 17:58:03
你可以在小提琴上做一個小提琴嗎? /jsfiddle.net – Adil 2013-04-06 17:59:00
http://jsfiddle.net/943L3/ 但我想這不會工作,因爲無法上傳圖像。 – 2013-04-06 18:02:42