Google 도서 API에서 도서 목록을 가져 왔습니다. localStorage에 JSON 객체를 저장 한 다음 객체에 다시 파싱했습니다. var books = JSON.parse(localStorage.books);
jQuery를 사용하여 Google 도서 JSON 개체 검색
이제 특정 책 항목에 대한 정보를 가져 오기 위해 책 ID를 기반으로합니다. 나는 특정 책에 대한 ID를 찾는 방법을 관리하여 목록에 표시하고, 봇은 책의 ID와 그 책에 대한 나머지 정보를 연관시킵니다. 그리고 만약 그렇다면, 특정 책에 대한 모든 데이터를 ID에서 가져 오는 방법은 무엇입니까?
JSON 샘플 Full API example of data
{
"kind": "books#volume",
"id": "HGsoQKfXs90C",
"etag": "O6jaKOAAZvI",
"selfLink": "https://www.googleapis.com/books/v1/volumes/HGsoQKfXs90C",
"volumeInfo": {
"title": "John D. Rockefeller",
"subtitle": "Anointed with Oil",
"authors": [
"Grant Segall"
],
"publisher": "Oxford University Press",
"publishedDate": "2001-02-08",
"description": "Chronicles the life and accomplishments of the philanthropist and industrialist who founded the Standard Oil Company.",
"industryIdentifiers": [
{
"type": "ISBN_10",
"identifier": "0195121473"
},
{
"type": "ISBN_13",
"identifier": "9780195121476"
}
],
"pageCount": 128,
"dimensions": {
"height": "25.00 cm",
"width": "23.10 cm",
"thickness": "1.50 cm"
},
@JeffS 왜 당신은 내가 아니라 내 질문에 게시 한 링크를-게시 다시입니까? –