思否評論區 @ 人的功能實現

ponponon發表於2023-02-27

例子出處:8.8.8.8 屬於什麼型別的 dns 伺服器?

圖片.png

使用 F12 檢視了一下 ajax

內容如下:

{
  "comments": [
    {
      "id": 1050000043461318,
      "user_id": 1030000017198763,
      "object_id": 1020000043461266,
      "reply_comment_id": 0,
      "reply_user_id": 0,
      "original_text": "那我在路由器,把 dns 改成 8.8.8.8,這個時候 8.8.8.8 對我的區域網來說,就算是本地域名伺服器嗎?",
      "parsed_text": "<p>那我在路由器,把 dns 改成 8.8.8.8,這個時候 8.8.8.8 對我的區域網來說,就算是本地域名伺服器嗎?<\/p>",
      "created": 1677118330,
      "is_liked": false,
      "votes": 0,
      "ip_address": "浙江",
      "user": {
        "id": 1030000017198763,
        "url": "\/u\/ponponon",
        "name": "ponponon",
        "avatar_url": "https:\/\/avatar-static.segmentfault.com\/213\/213\/2132139767-5c000091a1baa_big64",
        "slug": "ponponon",
        "headdress_worn": null
      },
      "reply_user": null,
      "member_actions": [
        {
          "action": "delete",
          "name": "刪除",
          "type": "delete"
        }
      ]
    },
    {
      "id": 1050000043461378,
      "user_id": 1030000038245499,
      "object_id": 1020000043461266,
      "reply_comment_id": 1050000043461318,
      "reply_user_id": 1030000017198763,
      "original_text": null,
      "parsed_text": "<p>這代表著將8888域名伺服器設為預設的域名伺服器, 不僅路由器可以改, 電腦上手機上也可以修改預設域名伺服器. 域名伺服器首先是伺服器, 並且為啥點踩?<\/p>",
      "created": 1677118561,
      "is_liked": false,
      "votes": 0,
      "ip_address": "上海",
      "user": {
        "id": 1030000038245499,
        "url": "\/u\/mala_yilin",
        "name": "瑪拉_以琳",
        "avatar_url": "https:\/\/avatar-static.segmentfault.com\/119\/330\/1193309217-5fb8b5c7bf101_big64",
        "slug": "mala_yilin",
        "headdress_worn": null
      },
      "reply_user": {
        "url": "\/u\/ponponon",
        "name": "ponponon"
      },
      "member_actions": []
    },
    {
      "id": 1050000043461379,
      "user_id": 1030000038245499,
      "object_id": 1020000043461266,
      "reply_comment_id": 1050000043461318,
      "reply_user_id": 1030000038245499,
      "original_text": null,
      "parsed_text": "<p>比如我公司用的就是自己公司搭建的域名伺服器, 有許多網站都上不去比如bilibili<\/p>",
      "created": 1677118629,
      "is_liked": false,
      "votes": 0,
      "ip_address": "上海",
      "user": {
        "id": 1030000038245499,
        "url": "\/u\/mala_yilin",
        "name": "瑪拉_以琳",
        "avatar_url": "https:\/\/avatar-static.segmentfault.com\/119\/330\/1193309217-5fb8b5c7bf101_big64",
        "slug": "mala_yilin",
        "headdress_worn": null
      },
      "reply_user": {
        "url": "\/u\/mala_yilin",
        "name": "瑪拉_以琳"
      },
      "member_actions": []
    },
    {
      "id": 1050000043461383,
      "user_id": 1030000017198763,
      "object_id": 1020000043461266,
      "reply_comment_id": 1050000043461318,
      "reply_user_id": 1030000038245499,
      "original_text": "你這裡說的預設域名伺服器是『根域名伺服器』、『頂級域名伺服器』、『權威域名伺服器』、『本地域名伺服器』四個中的哪一個?",
      "parsed_text": "<p>你這裡說的預設域名伺服器是『根域名伺服器』、『頂級域名伺服器』、『權威域名伺服器』、『本地域名伺服器』四個中的哪一個?<\/p>",
      "created": 1677118674,
      "is_liked": false,
      "votes": 0,
      "ip_address": "浙江",
      "user": {
        "id": 1030000017198763,
        "url": "\/u\/ponponon",
        "name": "ponponon",
        "avatar_url": "https:\/\/avatar-static.segmentfault.com\/213\/213\/2132139767-5c000091a1baa_big64",
        "slug": "ponponon",
        "headdress_worn": null
      },
      "reply_user": {
        "url": "\/u\/mala_yilin",
        "name": "瑪拉_以琳"
      },
      "member_actions": [
        {
          "action": "delete",
          "name": "刪除",
          "type": "delete"
        }
      ]
    }
  ],
  "all_total": 4,
  "total": 4
}

相關文章