Ví dụ minh họa cấu hình danh mục trò chơi mẫu dạng mã JavaScript và JSON cục bộ.
JavaScript
// Cấu hình thông tin trò chơi mẫu cục bộ
const localGameConfig = {
platform: "android",
brand: "IWIN68",
defaultCategory: "Nổ hũ",
featuredGames: [
{ id: "098", name: "Mermaid Riches" },
{ id: "146", name: "Tsar Treasures" },
{ id: "111", name: "Garuda Gems" },
{ id: "053", name: "Fortune Mouse" },
{ id: "113", name: "Btrfly Blossom" }
],
debugMode: true
};
function getFeaturedList() {
return localGameConfig.featuredGames.map(game => game.name);
}
console.log("Cấu hình IWIN68 đã nạp:", getFeaturedList());
JSON
{
"platform": "android",
"brand": "IWIN68",
"defaultCategory": "Nổ hũ",
"featuredGames": [
{ "id": "098", "name": "Mermaid Riches" },
{ "id": "146", "name": "Tsar Treasures" },
{ "id": "111", "name": "Garuda Gems" },
{ "id": "053", "name": "Fortune Mouse" },
{ "id": "113", "name": "Btrfly Blossom" }
],
"debugMode": true
}