質問: 0; display(currentDisplayCount); }); //もっと見るで要素を追加 $('.original-tab-more-btn').click(function () { currentDisplayCount += MAX_DISPLAY_COUNT; display(currentDisplayCount); }); }); ``` ``` [ { "category": "new", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "" }, { "category": "re", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "" }, ] ``` ↓追加するjsonです。 ``` [ { "category": "new-s", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "" }, { "category": "re-s", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "" }, ] ```
回答: 例示されたJSONと追加するJSONを連結する処理 (正直なにを聞きたいかさっぱりわかりません) ``` var a=[ { "category": "new", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "", }, { "category": "re", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "", }, ]; var b=[ { "category": "new-s", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "", }, { "category": "re-s", "url": "", "img": "", "labelName": "", "dateText": "", "labelName2": "", "dateText2": "", "price": "", }, ]; a=a.concat(b); console.log(a); ```