bottonName = bottonName || 'first';什么意思啊
?$("button:first").click(function(event,bottonName)?{ ????????bottonName?=?bottonName?||?'first'; ????????update($("span:first"),$("span:last"),bottonName); ????});
如題
?$("button:first").click(function(event,bottonName)?{ ????????bottonName?=?bottonName?||?'first'; ????????update($("span:first"),$("span:last"),bottonName); ????});
如題
2017-01-17
舉報
2017-01-17
個人理解是這樣的,如果bottonName未定義,則取‘first’
2018-07-05
? update($("span:first"),$("span:last"),bottonName);? 是什么意思