如何獲取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