如何获取div class =“dpBibHoldingStatement”的内容? 它不能与getElementByClass一起使用,因为html中有几个相同的类。我无法显示所有的代码。获取Div类内容html
<div class="dpBibTitle">
<!-- please read c1063106, c1063117, c1044421, c1060576a before changing title -->
<a id="recordDisplayLink2Component_0" href="/iii/encore/record/C__Rb4101617__Sapple__P0%2C1__Orightresult__X5?lang=eng&suite=pearl">
The Apple experience : the secrets of delivering insanely great customer service</a>
/by Carmine Gallo
</div>
<div class="dpBibAuthor">
<!-- author -->
<a id="authorDisplayLinkComponent_0" href="/iii/encore/search/C__SGallo%2C+Carmine.__Orightresult?lang=eng&suite=pearl">
Gallo, Carmine.</a>
</div>
<div class="dpBibHoldingStatement">
Circulation Collection
HF5415.5 .G356 2012
DUE 10-03-13OFF CAMPUS
</div>
放在console.log中,所以他可以在webkit检查器中正确读取内容 – theshadowmonkey 2013-03-06 18:51:32