這是我的 API 獲取請求:
{
"data": [
{
"id": 2,
"attributes": {
"title": "something",
"game": "default",
"players": "static",
}
}
],
}
我想設定"Players"如下陣列:
"attributes": {
"title": "23123",
"game": "1231",
"players": [
"1" : "static1",
"2" : "static2",
"3" : static3",
],
}
我怎樣才能制作這個陣列?
uj5u.com熱心網友回復:
您需要從內容型別構建器中創建一個名為“Player”的組件,然后將此組件添加到您的主要物體型別中并具有可重復性。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/431318.html
