比如每個(gè)dom設(shè)置了data-id 每個(gè)data-id 值不同 通過點(diǎn)擊怎么獲得data-id的值?用ref好像不能滿足需求啊
react 如何獲取當(dāng)前元素?cái)?shù)據(jù)
Cats萌萌
2018-09-07 16:09:48