Seasons123 / blog-FE

web前端相关issue is my blog :lollipop:
2 stars 0 forks source link

dom元素的id值需要唯一 #104

Closed Seasons123 closed 5 years ago

Seasons123 commented 5 years ago

如果不唯一,如下:

<textarea id="a">1</textarea>
<textarea id="a">2</textarea>

使用$选择器选择的时候,只能选择出其中一个dom元素,如下: image