当单击子元素时,未从父元素中收集ID,则为值;当将鼠标移出p和跨度并单击“我将获得ID,值”时。
const listBulp = bulps.map((bulp)
=><li className="bulpList iconleft"
key={bulp.id} onClick=
{this.selectBulp} value={bulp.id}
id={bulp.name}>
<span className="icon-bulp
headlight-bulb-high-beam-and-low-
beam"></span>
<p>{bulp.name}</p>
</li>);