{"id":259587,"date":"2023-01-04T08:15:39","date_gmt":"2023-01-04T00:15:39","guid":{"rendered":"https:\/\/gulass.cn\/?p=259587"},"modified":"2022-12-24T12:16:22","modified_gmt":"2022-12-24T04:16:22","slug":"html5-web-storage","status":"publish","type":"post","link":"https:\/\/gulass.cn\/html5-web-storage.html","title":{"rendered":"HTML5 Web \u5b58\u50a8\u7b80\u4ecb"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nHTML5 web \u5b58\u50a8\uff0c\u4e00\u4e2a\u6bd4 cookie \u66f4\u597d\u7684\u672c\u5730\u5b58\u50a8\u65b9\u5f0f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4ec0\u4e48\u662f HTML5 Web \u5b58\u50a8?<\/strong><\/div>\n

\u4f7f\u7528HTML5\u53ef\u4ee5\u5728\u672c\u5730\u5b58\u50a8\u7528\u6237\u7684\u6d4f\u89c8\u6570\u636e\u3002<\/p>\n

\u65e9\u4e9b\u65f6\u5019,\u672c\u5730\u5b58\u50a8\u4f7f\u7528\u7684\u662f cookie\u3002\u4f46\u662fWeb \u5b58\u50a8\u9700\u8981\u66f4\u52a0\u7684\u5b89\u5168\u4e0e\u5feb\u901f. \u8fd9\u4e9b\u6570\u636e\u4e0d\u4f1a\u88ab\u4fdd\u5b58\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u4f46\u662f\u8fd9\u4e9b\u6570\u636e\u53ea\u7528\u4e8e\u7528\u6237\u8bf7\u6c42\u7f51\u7ad9\u6570\u636e\u4e0a.\u5b83\u4e5f\u53ef\u4ee5\u5b58\u50a8\u5927\u91cf\u7684\u6570\u636e\uff0c\u800c\u4e0d\u5f71\u54cd\u7f51\u7ad9\u7684\u6027\u80fd.<\/p>\n

\u6570\u636e\u4ee5 \u952e\/\u503c \u5bf9\u5b58\u5728, web\u7f51\u9875\u7684\u6570\u636e\u53ea\u5141\u8bb8\u8be5\u7f51\u9875\u8bbf\u95ee\u4f7f\u7528\u3002<\/p>\n

\u6d4f\u89c8\u5668\u652f\u6301<\/strong><\/div>\n

Internet Explorer 8+, Firefox, Opera, Chrome, \u548c Safari\u652f\u6301Web \u5b58\u50a8\u3002<\/p>\n

\u6ce8\u610f: Internet Explorer 7 \u53ca\u66f4\u65e9IE\u7248\u672c\u4e0d\u652f\u6301web \u5b58\u50a8.<\/p>\n

localStorage \u548c sessionStorage<\/strong><\/div>\n

\u5ba2\u6237\u7aef\u5b58\u50a8\u6570\u636e\u7684\u4e24\u4e2a\u5bf9\u8c61\u4e3a\uff1a<\/p>\n

    \n
  1. localStorage - \u7528\u4e8e\u957f\u4e45\u4fdd\u5b58\u6574\u4e2a\u7f51\u7ad9\u7684\u6570\u636e\uff0c\u4fdd\u5b58\u7684\u6570\u636e\u6ca1\u6709\u8fc7\u671f\u65f6\u95f4\uff0c\u76f4\u5230\u624b\u52a8\u53bb\u9664\u3002<\/li>\n
  2. sessionStorage - \u7528\u4e8e\u4e34\u65f6\u4fdd\u5b58\u540c\u4e00\u7a97\u53e3(\u6216\u6807\u7b7e\u9875)\u7684\u6570\u636e\uff0c\u5728\u5173\u95ed\u7a97\u53e3\u6216\u6807\u7b7e\u9875\u4e4b\u540e\u5c06\u4f1a\u5220\u9664\u8fd9\u4e9b\u6570\u636e\u3002<\/li>\n<\/ol>\n

    \u5728\u4f7f\u7528 web \u5b58\u50a8\u524d,\u5e94\u68c0\u67e5\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301 localStorage \u548c sessionStorage:<\/p>\n

    if<\/span>(<\/span>typeof<\/span>(<\/span>Storage<\/span>)<\/span>!==<\/span>\"<\/span>undefined<\/span>\"<\/span>)<\/span>\r\n<\/span>{<\/span>\r\n    <\/span>\/\/<\/span> \u662f\u7684! \u652f\u6301 localStorage  sessionStorage \u5bf9\u8c61!<\/span><\/span>\r\n    <\/span>\/\/<\/span> \u4e00\u4e9b\u4ee3\u7801.....<\/span><\/span>\r\n<\/span>}<\/span> <\/span>else<\/span> <\/span>{<\/span>\r\n    <\/span>\/\/<\/span> \u62b1\u6b49! \u4e0d\u652f\u6301 web \u5b58\u50a8\u3002<\/span><\/span>\r\n<\/span>}<\/span><\/pre>\n
    localStorage \u5bf9\u8c61<\/strong><\/div>\n

    localStorage \u5bf9\u8c61\u5b58\u50a8\u7684\u6570\u636e\u6ca1\u6709\u65f6\u95f4\u9650\u5236\u3002\u7b2c\u4e8c\u5929\u3001\u7b2c\u4e8c\u5468\u6216\u4e0b\u4e00\u5e74\u4e4b\u540e\uff0c\u6570\u636e\u4f9d\u7136\u53ef\u7528\u3002
    \n\u5b9e\u4f8b<\/p>\n

    \/\/ \u5b58\u50a8\r\nlocalStorage.setItem(\"sitename\", \"\u83dc\u9e1f\u6559\u7a0b\");\r\n \r\n\/\/ \u67e5\u627e\r\ndocument.getElementById(\"result\").innerHTML = \"\u7f51\u7ad9\u540d\uff1a\" +  localStorage.getItem(\"sitename\");<\/pre>\n

    \u5b9e\u4f8b\u89e3\u6790\uff1a<\/p>\n

      \n
    1. \u4f7f\u7528 key=\"sitename\" \u548c value=\"\u83dc\u9e1f\u6559\u7a0b\" \u521b\u5efa\u4e00\u4e2a localStorage \u952e\/\u503c\u5bf9\u3002<\/li>\n
    2. \u68c0\u7d22\u952e\u503c\u4e3a \"sitename\" \u7684\u503c\u7136\u540e\u5c06\u6570\u636e\u63d2\u5165 id=\"result\" \u7684\u5143\u7d20\u4e2d\u3002<\/li>\n<\/ol>\n

      \u4ee5\u4e0a\u5b9e\u4f8b\u4e5f\u53ef\u4ee5\u8fd9\u4e48\u5199\uff1a<\/p>\n

      \/\/ \u5b58\u50a8\r\nlocalStorage.sitename = \"\u83dc\u9e1f\u6559\u7a0b\";\r\n\/\/ \u67e5\u627e\r\ndocument.getElementById(\"result\").innerHTML = localStorage.sitename;<\/pre>\n

      \u79fb\u9664 localStorage \u4e2d\u7684 \"sitename\" :<\/p>\n

      localStorage.removeItem(\"sitename\");<\/pre>\n

      \u4e0d\u7ba1\u662f localStorage\uff0c\u8fd8\u662f sessionStorage\uff0c\u53ef\u4f7f\u7528\u7684API\u90fd\u76f8\u540c\uff0c\u5e38\u7528\u7684\u6709\u5982\u4e0b\u51e0\u4e2a\uff08\u4ee5localStorage\u4e3a\u4f8b\uff09\uff1a<\/p>\n

        \n
      1. \u4fdd\u5b58\u6570\u636e\uff1alocalStorage.setItem(key,value);<\/li>\n
      2. \u8bfb\u53d6\u6570\u636e\uff1alocalStorage.getItem(key);<\/li>\n
      3. \u5220\u9664\u5355\u4e2a\u6570\u636e\uff1alocalStorage.removeItem(key);<\/li>\n
      4. \u5220\u9664\u6240\u6709\u6570\u636e\uff1alocalStorage.clear();<\/li>\n
      5. \u5f97\u5230\u67d0\u4e2a\u7d22\u5f15\u7684key\uff1alocalStorage.key(index);<\/li>\n<\/ol>\n

        \u63d0\u793a: \u952e\/\u503c\u5bf9\u901a\u5e38\u4ee5\u5b57\u7b26\u4e32\u5b58\u50a8\uff0c\u4f60\u53ef\u4ee5\u6309\u81ea\u5df1\u7684\u9700\u8981\u8f6c\u6362\u8be5\u683c\u5f0f\u3002<\/p>\n

        \u4e0b\u9762\u7684\u5b9e\u4f8b\u5c55\u793a\u4e86\u7528\u6237\u70b9\u51fb\u6309\u94ae\u7684\u6b21\u6570\u3002<\/p>\n

        \u4ee3\u7801\u4e2d\u7684\u5b57\u7b26\u4e32\u503c\u8f6c\u6362\u4e3a\u6570\u5b57\u7c7b\u578b:<\/p>\n

        \u5b9e\u4f8b<\/p>\n

        if (localStorage.clickcount)\r\n{\r\n    localStorage.clickcount=Number(localStorage.clickcount)+1;\r\n}\r\nelse\r\n{\r\n    localStorage.clickcount=1;\r\n}\r\ndocument.getElementById(\"result\").innerHTML=\" \u4f60\u5df2\u7ecf\u70b9\u51fb\u4e86\u6309\u94ae \" + localStorage.clickcount + \" \u6b21 \";<\/pre>\n
        sessionStorage \u5bf9\u8c61<\/strong><\/div>\n

        sessionStorage \u65b9\u6cd5\u9488\u5bf9\u4e00\u4e2a session \u8fdb\u884c\u6570\u636e\u5b58\u50a8\u3002\u5f53\u7528\u6237\u5173\u95ed\u6d4f\u89c8\u5668\u7a97\u53e3\u540e\uff0c\u6570\u636e\u4f1a\u88ab\u5220\u9664\u3002<\/p>\n

        \u5982\u4f55\u521b\u5efa\u5e76\u8bbf\u95ee\u4e00\u4e2a sessionStorage\uff1a<\/p>\n

        \u5b9e\u4f8b<\/p>\n

        if (sessionStorage.clickcount)\r\n{\r\n    sessionStorage.clickcount=Number(sessionStorage.clickcount)+1;\r\n}\r\nelse\r\n{\r\n    sessionStorage.clickcount=1;\r\n}\r\ndocument.getElementById(\"result\").innerHTML=\"\u5728\u8fd9\u4e2a\u4f1a\u8bdd\u4e2d\u4f60\u5df2\u7ecf\u70b9\u51fb\u4e86\u8be5\u6309\u94ae \" + sessionStorage.clickcount + \" \u6b21 \";<\/pre>\n
        Web Storage \u5f00\u53d1\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u7ad9\u5217\u8868\u7a0b\u5e8f<\/strong><\/div>\n

        \u7f51\u7ad9\u5217\u8868\u7a0b\u5e8f\u5b9e\u73b0\u4ee5\u4e0b\u529f\u80fd\uff1a<\/p>\n

          \n
        1. \u53ef\u4ee5\u8f93\u5165\u7f51\u7ad9\u540d\uff0c\u7f51\u5740\uff0c\u4ee5\u7f51\u7ad9\u540d\u4f5c\u4e3akey\u5b58\u5165localStorage\uff1b<\/li>\n
        2. \u6839\u636e\u7f51\u7ad9\u540d\uff0c\u67e5\u627e\u7f51\u5740\uff1b<\/li>\n
        3. \u5217\u51fa\u5f53\u524d\u5df2\u4fdd\u5b58\u7684\u6240\u6709\u7f51\u7ad9\uff1b<\/li>\n<\/ol>\n

          \u4ee5\u4e0b\u4ee3\u7801\u7528\u4e8e\u4fdd\u5b58\u4e0e\u67e5\u627e\u6570\u636e\uff1a<\/p>\n

          save() \u4e0e find() \u65b9\u6cd5<\/strong><\/p>\n

          \/\/\u4fdd\u5b58\u6570\u636e  \r\nfunction save(){  \r\n    var siteurl = document.getElementById(\"siteurl\").value;  \r\n    var sitename = document.getElementById(\"sitename\").value;  \r\n    localStorage.setItem(sitename, siteurl);\r\n    alert(\"\u6dfb\u52a0\u6210\u529f\");\r\n}\r\n\/\/\u67e5\u627e\u6570\u636e  \r\nfunction find(){  \r\n    var search_site = document.getElementById(\"search_site\").value;  \r\n    var sitename = localStorage.getItem(search_site);  \r\n    var find_result = document.getElementById(\"find_result\");  \r\n    find_result.innerHTML = search_site + \"\u7684\u7f51\u5740\u662f\uff1a\" + sitename;  \r\n}<\/pre>\n

          \u5b8c\u6574\u5b9e\u4f8b\u6f14\u793a\u5982\u4e0b\uff1a<\/p>\n

          \u5b9e\u4f8b<\/p>\n

          <<\/span>div<\/span> <\/span>style<\/span>=<\/span>\"<\/span>border: 2px dashed #ccc;width:320px;text-align:center;<\/span>\"<\/span>><\/span>     \r\n    <\/span><<\/span>label<\/span> <\/span>for<\/span>=<\/span>\"<\/span>sitename<\/span>\"<\/span>><\/span>\u7f51\u7ad9\u540d(key)\uff1a<\/span><\/<\/span>label<\/span>><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span> <\/span>id<\/span>=<\/span>\"<\/span>sitename<\/span>\"<\/span> <\/span>name<\/span>=<\/span>\"<\/span>sitename<\/span>\"<\/span> <\/span>class<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>br<\/span>\/><\/span>  \r\n    <\/span><<\/span>label<\/span> <\/span>for<\/span>=<\/span>\"<\/span>siteurl<\/span>\"<\/span>><\/span>\u7f51 \u5740(value)\uff1a<\/span><\/<\/span>label<\/span>><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span> <\/span>id<\/span>=<\/span>\"<\/span>siteurl<\/span>\"<\/span> <\/span>name<\/span>=<\/span>\"<\/span>siteurl<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>br<\/span>\/><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>button<\/span>\"<\/span> <\/span>onclick<\/span>=<\/span>\"<\/span>save()<\/span>\"<\/span> <\/span>value<\/span>=<\/span>\"<\/span>\u65b0\u589e\u8bb0\u5f55<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>hr<\/span>\/><\/span>  \r\n    <\/span><<\/span>label<\/span> <\/span>for<\/span>=<\/span>\"<\/span>search_site<\/span>\"<\/span>><\/span>\u8f93\u5165\u7f51\u7ad9\u540d\uff1a<\/span><\/<\/span>label<\/span>><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span> <\/span>id<\/span>=<\/span>\"<\/span>search_site<\/span>\"<\/span> <\/span>name<\/span>=<\/span>\"<\/span>search_site<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>button<\/span>\"<\/span> <\/span>onclick<\/span>=<\/span>\"<\/span>find()<\/span>\"<\/span> <\/span>value<\/span>=<\/span>\"<\/span>\u67e5\u627e\u7f51\u7ad9<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>p<\/span> <\/span>id<\/span>=<\/span>\"<\/span>find_result<\/span>\"<\/span>><\/span><<\/span>br<\/span>\/><\/span><\/<\/span>p<\/span>><\/span>  \r\n<\/span><\/<\/span>div<\/span>><\/span><\/pre>\n

          \u5b9e\u73b0\u6548\u679c\u622a\u56fe\uff1a
          \n\"\"
          \n\u4ee5\u4e0a\u5b9e\u4f8b\u53ea\u662f\u6f14\u793a\u4e86\u7b80\u5355\u7684 localStorage \u5b58\u50a8\u4e0e\u67e5\u627e\uff0c\u66f4\u591a\u60c5\u51b5\u4e0b\u6211\u4eec\u5b58\u50a8\u7684\u6570\u636e\u4f1a\u66f4\u590d\u6742\u3002<\/p>\n

          \u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u4f7f\u7528 JSON.stringify \u6765\u5b58\u50a8\u5bf9\u8c61\u6570\u636e\uff0cJSON.stringify \u53ef\u4ee5\u5c06\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n

          var site = new Object;\r\n...\r\nvar str = JSON.stringify(site); \/\/ \u5c06\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/pre>\n

          \u4e4b\u540e\u6211\u4eec\u4f7f\u7528 JSON.parse \u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a JSON \u5bf9\u8c61\uff1a<\/p>\n

          var site = JSON.parse(str);<\/pre>\n

          JavaScript \u5b9e\u73b0\u4ee3\u7801\uff1a<\/p>\n

          save() \u4e0e find() \u65b9\u6cd5<\/strong><\/p>\n

          \/\/\u4fdd\u5b58\u6570\u636e  \r\nfunction save(){  \r\n    var site = new Object;\r\n    site.keyname = document.getElementById(\"keyname\").value;\r\n    site.sitename = document.getElementById(\"sitename\").value;  \r\n    site.siteurl = document.getElementById(\"siteurl\").value;\r\n    var str = JSON.stringify(site); \/\/ \u5c06\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\r\n    localStorage.setItem(site.keyname,str);  \r\n    alert(\"\u4fdd\u5b58\u6210\u529f\");\r\n}  \r\n\/\/\u67e5\u627e\u6570\u636e  \r\nfunction find(){  \r\n    var search_site = document.getElementById(\"search_site\").value;  \r\n    var str = localStorage.getItem(search_site);  \r\n    var find_result = document.getElementById(\"find_result\");\r\n    var site = JSON.parse(str);  \r\n    find_result.innerHTML = search_site + \"\u7684\u7f51\u7ad9\u540d\u662f\uff1a\" + site.sitename + \"\uff0c\u7f51\u5740\u662f\uff1a\" + site.siteurl;  \r\n}<\/pre>\n

          \u5b8c\u6574\u5b9e\u4f8b\u5982\u4e0b\uff1a<\/p>\n

          \u5b9e\u4f8b<\/p>\n

          <<\/span>div<\/span> <\/span>style<\/span>=<\/span>\"<\/span>border: 2px dashed #ccc;width:320px;text-align:center;<\/span>\"<\/span>><\/span>\r\n    <\/span><<\/span>label<\/span> <\/span>for<\/span>=<\/span>\"<\/span>keyname<\/span>\"<\/span>><\/span>\u522b\u540d(key):<\/span><\/<\/span>label<\/span>><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span> <\/span>id<\/span>=<\/span>\"<\/span>keyname<\/span>\"<\/span> <\/span>name<\/span>=<\/span>\"<\/span>keyname<\/span>\"<\/span> <\/span>class<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>br<\/span>\/><\/span>  \r\n    <\/span><<\/span>label<\/span> <\/span>for<\/span>=<\/span>\"<\/span>sitename<\/span>\"<\/span>><\/span>\u7f51\u7ad9\u540d\uff1a<\/span><\/<\/span>label<\/span>><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span> <\/span>id<\/span>=<\/span>\"<\/span>sitename<\/span>\"<\/span> <\/span>name<\/span>=<\/span>\"<\/span>sitename<\/span>\"<\/span> <\/span>class<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>br<\/span>\/><\/span>  \r\n    <\/span><<\/span>label<\/span> <\/span>for<\/span>=<\/span>\"<\/span>siteurl<\/span>\"<\/span>><\/span>\u7f51 \u5740\uff1a<\/span><\/<\/span>label<\/span>><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span> <\/span>id<\/span>=<\/span>\"<\/span>siteurl<\/span>\"<\/span> <\/span>name<\/span>=<\/span>\"<\/span>siteurl<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>br<\/span>\/><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>button<\/span>\"<\/span> <\/span>onclick<\/span>=<\/span>\"<\/span>save()<\/span>\"<\/span> <\/span>value<\/span>=<\/span>\"<\/span>\u65b0\u589e\u8bb0\u5f55<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>hr<\/span>\/><\/span>  \r\n    <\/span><<\/span>label<\/span> <\/span>for<\/span>=<\/span>\"<\/span>search_site<\/span>\"<\/span>><\/span>\u8f93\u5165\u522b\u540d(key)\uff1a<\/span><\/<\/span>label<\/span>><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>text<\/span>\"<\/span> <\/span>id<\/span>=<\/span>\"<\/span>search_site<\/span>\"<\/span> <\/span>name<\/span>=<\/span>\"<\/span>search_site<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>input<\/span> <\/span>type<\/span>=<\/span>\"<\/span>button<\/span>\"<\/span> <\/span>onclick<\/span>=<\/span>\"<\/span>find()<\/span>\"<\/span> <\/span>value<\/span>=<\/span>\"<\/span>\u67e5\u627e\u7f51\u7ad9<\/span>\"<\/span>\/><\/span>  \r\n    <\/span><<\/span>p<\/span> <\/span>id<\/span>=<\/span>\"<\/span>find_result<\/span>\"<\/span>><\/span><<\/span>br<\/span>\/><\/span><\/<\/span>p<\/span>><\/span>  \r\n<\/span><\/<\/span>div<\/span>><\/span><\/pre>\n

          \u5b9e\u4f8b\u4e2d\u7684 loadAll \u8f93\u51fa\u4e86\u6240\u6709\u5b58\u50a8\u7684\u6570\u636e\uff0c\u4f60\u9700\u8981\u786e\u4fdd localStorage \u5b58\u50a8\u7684\u6570\u636e\u90fd\u4e3a JSON \u683c\u5f0f\uff0c\u5426\u5219 JSON.parse(str) \u5c06\u4f1a\u62a5\u9519\u3002<\/p>\n

          \u8f93\u51fa\u7ed3\u679c\u6f14\u793a\uff1a
          \n\"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

          \u4f7f\u7528HTML5\u53ef\u4ee5\u5728\u672c\u5730\u5b58\u50a8\u7528\u6237\u7684\u6d4f\u89c8\u6570\u636e\u3002 \u65e9\u4e9b\u65f6\u5019,\u672c\u5730\u5b58\u50a8\u4f7f\u7528\u7684\u662f cookie\u3002\u4f46\u662fWeb \u5b58\u50a8\u9700\u8981\u66f4 […]<\/p>\n","protected":false},"author":1470,"featured_media":259600,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-259587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/259587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=259587"}],"version-history":[{"count":5,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/259587\/revisions"}],"predecessor-version":[{"id":259609,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/259587\/revisions\/259609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/259600"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=259587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=259587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=259587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}