From d1cabdb58c9234c220173db74591f2bf727fa042 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Wed, 6 Nov 2024 15:38:00 +0400 Subject: [PATCH] Add table example --- db.json | 33 +++++++++++++++++++++++++++++---- page-js.html | 40 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 65 insertions(+), 8 deletions(-) diff --git a/db.json b/db.json index b8abd43..11daf39 100644 --- a/db.json +++ b/db.json @@ -3,12 +3,37 @@ "comments": [{ "id": 1, "body": "some comment", "postId": 1 }], "profile": { "name": "typicode" }, "students": [ - { "id": 1, "last_name": "Ivanov", "first_name": "Ivan", "bdate": "01.01.1999", "groupId": 1 }, - { "id": 2, "last_name": "Petrov", "first_name": "Petr", "bdate": "12.12.2000", "groupId": 1 }, - { "id": 3, "last_name": "Sidorov", "first_name": "Sidr", "bdate": "12.12.2000", "groupId": 2 } + { + "id": 1, + "last_name": "Ivanov", + "first_name": "Ivan", + "bdate": "01.01.1999", + "email": "i.ivanov@mail.ru", + "phone": "8 111 111 11 11", + "groupId": 1 + }, + { + "id": 2, + "last_name": "Petrov", + "first_name": "Petr", + "bdate": "12.12.2000", + "email": "p.petrov@mail.ru", + "phone": "8 222 222 22 22", + "groupId": 1 + }, + { + "id": 3, + "last_name": "Sidorov", + "first_name": "Sidr", + "bdate": "12.12.2000", + "email": "s.sidorov@mail.ru", + "phone": "8 333 333 33 33", + "groupId": 2 + } ], "groups": [ { "id": 1, "name": "SomeGroup-11" }, - { "id": 2, "name": "SomeGroup-12" } + { "id": 2, "name": "SomeGroup-12" }, + { "id": 2, "name": "SomeGroup-13" } ] } diff --git a/page-js.html b/page-js.html index 0ffb76e..9de5b26 100644 --- a/page-js.html +++ b/page-js.html @@ -35,24 +35,56 @@ -
+
+ + + + + + + + + + + + + + +
#LastFirstBirthdayE-MailPhoneGroup
Автор, 2022