課程
/前端開發
/jQuery
/jQuery基礎(三)—事件篇
$("button:last").click(function()?{ ????????$("button:first").trigger('click','last'); ????});
2017-04-28
源自:jQuery基礎(三)—事件篇 7-1
正在回答
我覺得是把"last"作為參數,傳給了第一個按鈕的click事件里面的bottonName
$("button:first").click(function(event,bottonName)?{ ????????bottonName?=?bottonName?||?'first'; ????????update($("span:first"),$("span:last"),bottonName); ????});
慕用9244143 提問者
舉報
jQuery第三階段開啟事件修煉,掌握對頁面進行交互的操作
3 回答on函數中的第一個參數“Aaron”是什么意思?
3 回答為什么input tigger focus事件傳參不生效?
5 回答e.date是什么意思???e不是函數date里面的形參嗎
2 回答e.data是什么意思?
2 回答e.type是什么意思?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-04-28
我覺得是把"last"作為參數,傳給了第一個按鈕的click事件里面的bottonName