私は次のhtmlを持っています。
<dl class="item-options">
<dd class="truncated" style="color:red;">DSOX3000-232, RS232/UART Serial Decode and Trigger - in <a onclick="return false" class="dots" href="#">...</a>/<div class="truncated_full_value"><dl class="item-options"><dt>Software Applications</dt><dd id="pppp">DSOX3000-232, RS232/UART Serial Decode and Trigger - installed, DSOX3000-AMS, CAN and LIN Automotive Serial Decode - installed, DSOX3000-MAT, Advanced Math Analysis for Infiniivision Oscilloscopes - installed, DSOX3000-VID, Enhanced Video/TV Application Package - installed/</dd></dl></div>
</dd>
<div class="mdata">
<dd class="truncated">DSOX3000-001, WaveGen 20 MHz Function/Arbitrary Wavefor <a onclick="return false" class="dots" href="#">...</a>/<div class="truncated_full_value"><dl class="item-options"><dt>Advanced Analysis</dt><dd id="pppp">DSOX3000-001, WaveGen 20 MHz Function/Arbitrary Waveform Generator - installed/</dd></dl></div></dd>
</div>
<p id="warranty" style="margin-top:10px"></p>
<dd>R-51B-001-5F, Return to Agilent Warranty - 5 years</dd><p>
</p>
</dl>
私は 1 つの変数にすべてのコンテンツを持っている<dl class="item-options">
と仮定します var mycontent
。
<p id="warranty" style="margin-top:10px"></p><dd>R-51B-001-5F, Return to Agilent Warranty - 5 years</dd><p></p>
その変数からこのコンテンツを削除する方法mycontent
。
mycontent
ポップアップに渡される変数です。だから私は保持したいです
<p id="warranty" style="margin-top:10px"></p><dd>R-51B-001-5F, Return to Agilent Warranty - 5 years</dd><p></p>
HTMLドキュメントでは、変数からのみ削除します。
ありがとう