{ "users": [ { "id": 1, "name": "Sam", "mail": "sam@try.com", "content": "My name is Sam!", "gid": 1 }, { "id": 2, "name": "Tony", "mail": "tony@try.com", "content": "My name is Tony!", "gid": 1 } ], "grades": [ { "id": 1, "gname": "编程班" }, { "id": 2, "gname": "前端班" }, { "id": 3, "gname": "美工班" } ]}这是我的db.json,users.gid=grades.id问一下大佬们如何将users和grades里的数据连接后一并返回?
添加回答
举报
0/150
提交
取消