如何得到li层中的id(如下),并用javascript写一个根据id的条件判断,
<liid="eq1"title="测温装置"><divclass="eBox"><divclass="eLogo">测温装置</div><dlclass="eData"...
<li id="eq1" title="测温装置">
<div class="eBox">
<div class="eLogo">
测温装置
</div>
<dl class="eData">
<dt class='d'>
导线温度1
</dt>
<dd class='d' id="e1d_T1">
<span class="V">77</span><span class="U">℃</span>
</dd>
<dt>
导线温度2
</dt>
<dd id="e1d_T2">
<span class="V">88</span><span class="U">℃</span>
</dd>
</dl>
</div>
</li> 展开
<div class="eBox">
<div class="eLogo">
测温装置
</div>
<dl class="eData">
<dt class='d'>
导线温度1
</dt>
<dd class='d' id="e1d_T1">
<span class="V">77</span><span class="U">℃</span>
</dd>
<dt>
导线温度2
</dt>
<dd id="e1d_T2">
<span class="V">88</span><span class="U">℃</span>
</dd>
</dl>
</div>
</li> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询