我有一個這樣的代碼什麼代碼可以解析div?
<div id="product_images_54695_update" class="image-border float-left center cm-reload-54695">
<div class="cm-image-wrap">
<span id="box_det_img_link_54695526fb066709b3_17149" class=" larger-image-wrap center">
<a id="det_img_link_54695526fb066709b3_17149" class="cm-image-previewer cm-previewer" title="" href="/images/detailed/17/p54695_6768912_fotoapparat_olympus_pen_e_pm2_14_42_mm_kit_flash_a.jpg" rev="preview[product_images_54695526fb066709b3]" rel="preview[product_images_54695526fb066709b3]">
<img id="det_img_54695526fb066709b3_17149" class=" " border="0" width="200" height="200" title="" alt="" src="/images/thumbnails/17/200/200/p54695_6768912_fotoapparat_olympus_pen_e_pm2_14_42_mm_kit_flash_a.jpg">
</a>
</span>
</div>
我想在JS這行文字:
<img id="det_img_54695526fb066709b3_17149" class=" " border="0" width="200" height="200" title="" alt="" src="/images/thumbnails/17/200/200/p54695_6768912_fotoapparat_olympus_pen_e_pm2_14_42_mm_kit_flash_a.jpg">
我能做到這與jQuery或本地JavaScript?
'$( '#det_img_54695526fb066709b3_17149')' – str
你已經問過這個問題幾分鐘前:http://stackoverflow.com/questions/19659417/which-函數使用獲取圖片 –
我不明白爲什麼你會想要HTML客戶端的行。你能告訴你打算做什麼嗎? – MildlySerious