請(qǐng)問(wèn)標(biāo)簽id能夠重名吧???教程的例子代碼id重名了,也行???
<input type="button" value = "全選" id="button1">
?<input type="button" value = "全不選" id="button1">
<input type="button" value = "全選" id="button1">
?<input type="button" value = "全不選" id="button1">
2016-07-12
舉報(bào)
2016-07-12
id只能是唯一的。一般情況下,如果重名了,默認(rèn)是選中第一個(gè)的。
2016-07-14
我怎么沒(méi)有看到教程里面有重名的ID