6
在JSON对象上使用jQuery的find()
与brnwdrng的问题类似,我正在寻找一种搜索类似于JSON的对象的方法。 假设我对象的结构是这样的: TestObj = { "Categories": [{ "Products": [{ "id": "a01", "name": "Pine", "description": "Short description of pine." }, { "id": "a02", "name": "Birch", "description": "Short description of birch." }, { "id": "a03", "name": "Poplar", "description": "Short description of poplar." }], "id": "A", "title": "Cheap", "description": "Short description of category …