我的问题仅仅是这方面的最佳做法。假设我有一个像这样的对象:
{"player":[
{
"player_id": "1",
"player_teams": [
{
"id": "1",
"team_name": "Test Team",
"team_link": "test-team",
},
{
"id": "65",
"team_name": "Test Team 2",
"team_link": "test-test",
}
]
"player_leagues": [
{
"id": "1",
"league_name": "Test League",
"league_link": "test-league",
},
{
"id": "65",
"league_name": "Test League 2",
"league_link": "test-league-2",
}
]
}
]}
现在显然在JSON文件中有一些mysqli查询来获取此信息。是否最好将团队和联盟分成两个文件?最后我必须放置5个部分。基本上人们将加载JSON文件并查询他们在该页面上没有看到的信息。
我是否回答了自己的问题?洛尔
谢谢你们!