{"id":30,"date":"2026-07-26T20:55:34","date_gmt":"2026-07-26T12:55:34","guid":{"rendered":"https:\/\/survoid.top\/?p=30"},"modified":"2026-07-26T20:55:34","modified_gmt":"2026-07-26T12:55:34","slug":"%e6%88%91%e5%81%9a%e4%ba%86%e4%b8%aa%e7%bd%91%e9%a1%b5%e7%89%88%e7%bd%91%e7%bb%9c%e5%bf%83%e7%94%b5%e5%9b%be-netpulse","status":"publish","type":"post","link":"https:\/\/survoid.top\/index.php\/2026\/07\/26\/%e6%88%91%e5%81%9a%e4%ba%86%e4%b8%aa%e7%bd%91%e9%a1%b5%e7%89%88%e7%bd%91%e7%bb%9c%e5%bf%83%e7%94%b5%e5%9b%be-netpulse\/","title":{"rendered":"\u6211\u505a\u4e86\u4e2a\u7f51\u9875\u7248\u7f51\u7edc&#8221;\u5fc3\u7535\u56fe&#8221;\u2014\u2014NetPulse"},"content":{"rendered":"<h1>\u6211\u505a\u4e86\u4e2a\u7f51\u9875\u7248\u7f51\u7edc\"\u5fc3\u7535\u56fe\"\u2014\u2014NetPulse<\/h1>\n<p>\u4f60\u6709\u6ca1\u6709\u8fc7\u8fd9\u79cd\u611f\u89c9\uff1a\u6d4b\u901f\u7f51\u7ad9\u8bf4\u4f60\u7f51\u901f\u98de\u5feb\uff0c\u53ef\u6253\u6e38\u620f\u5c31\u662f\u4e00\u987f\u4e00\u987f\u7684\uff1f\u95ee\u9898\u5f80\u5f80\u4e0d\u5728\"\u5feb\u4e0d\u5feb\"\uff0c\u800c\u5728\"\u7a33\u4e0d\u7a33\"\u3002\u6240\u4ee5\u6211\u987a\u624b\u5199\u4e86\u4e2a\u53eb <strong>NetPulse<\/strong> \u7684\u5c0f\u5de5\u5177\uff0c\u4e13\u95e8\u5e72\u4e00\u4ef6\u4e8b\uff1a\u76ef\u7740\u4f60\u7684\u7f51\u7edc\u5ef6\u8fdf\uff0c\u770b\u5b83\u5230\u5e95\u7a33\u4e0d\u7a33\u3002<\/p>\n<p>\u8fd9\u73a9\u610f\u513f\u8bf4\u767d\u4e86\u5c31\u662f<strong>\u4e00\u4e2a HTML \u6587\u4ef6<\/strong>\uff0c\u7eaf\u524d\u7aef\uff0c\u6ca1\u540e\u7aef\uff0c\u6253\u5f00\u5c31\u80fd\u7528\u3002\u4f60\u586b\u4e2a\u7f51\u5740\uff08\u9ed8\u8ba4\u5c31\u586b\u7684\u54b1\u4eec\u7ad9 <code>survoid.top<\/code>\uff09\uff0c\u5b83\u6bcf\u79d2\u53bb\u8bf7\u6c42\u4e00\u6b21\uff0c\u628a\u6bcf\u6b21\u82b1\u7684\u65f6\u95f4\u8bb0\u4e0b\u6765\uff0c\u753b\u6210\u4e00\u6761\u7ebf\u3002\u54ea\u4e00\u6bb5\u7a81\u7136\u6296\u4e86\u3001\u54ea\u4e00\u6bb5\u5f00\u59cb\u4e22\u5305\uff0c\u66f2\u7ebf\u4e0a\u4e00\u773c\u5c31\u80fd\u770b\u51fa\u6765\u3002<\/p>\n<h2>\u5b83\u662f\u600e\u4e48\u5b9e\u73b0\u7684\uff1f<\/h2>\n<p>\u5176\u5b9e\u6ca1\u591a\u7384\u4e4e\uff0c\u6838\u5fc3\u5c31\u51e0\u5757\uff1a<\/p>\n<h3>\u63a2\u6d4b\u9760 fetch<\/h3>\n<p>\u6bcf\u6b21\u63a2\u6d4b\u5c31\u662f\u4e00\u6b21 <code>fetch<\/code> \u8bf7\u6c42\uff0c\u914d\u4e2a <code>AbortController<\/code> \u505a 5 \u79d2\u8d85\u65f6\u3002\u6210\u529f\u4e86\u5c31\u8bb0\u4e0b\u8017\u65f6\uff0c\u8d85\u65f6\u5c31\u8bb0\u4e00\u6b21\"\u4e22\u5305\"\u3002<code>cache<\/code> \u8bbe\u6210 <code>no-store<\/code>\uff0c\u514d\u5f97\u6d4f\u89c8\u5668\u628a\u7ed3\u679c\u7f13\u5b58\u4e86\u7cca\u5f04\u4f60\u3002<\/p>\n<h3>\u8282\u594f\u548c\u7a97\u53e3<\/h3>\n<p>\u7528 <code>setInterval<\/code> \u6bcf 1 \u79d2\u63a2\u4e00\u6b21\u3002\u6570\u636e\u5b58\u5728\u4e00\u4e2a\u6570\u7ec4\u91cc\uff0c\u6700\u591a\u7559\u6700\u8fd1 120 \u4e2a\u70b9\uff0c\u8d85\u4e86\u5c31\u628a\u6700\u8001\u7684\u6254\u6389\u2014\u2014\u6240\u4ee5\u4f60\u770b\u5230\u7684\u6c38\u8fdc\u662f\u6700\u8fd1\u4e24\u5206\u949f\u7684\u66f2\u7ebf\u3002<\/p>\n<h3>\u753b\u56fe<\/h3>\n<p>\u7528 Canvas \u753b\u7684\u3002\u4e3a\u4e86\u5728\u9ad8\u6e05\u5c4f\u4e0a\u4e0d\u7cca\uff0c\u505a\u4e86 <code>devicePixelRatio<\/code> \u9002\u914d\u3002\u4e22\u5305\u7684\u70b9\u7528\u7ea2\u53c9\u6807\uff0c\u6b63\u5e38\u7684\u70b9\u662f\u84dd\u70b9\uff0c\u6700\u65b0\u4e00\u4e2a\u70b9\u65c1\u8fb9\u8fd8\u6807\u4e86\u5177\u4f53\u6beb\u79d2\u6570\u3002<\/p>\n<h3>\u7b97\u6307\u6807<\/h3>\n<p>\u9664\u4e86\u5f53\u524d\/\u5e73\u5747\u5ef6\u8fdf\u3001\u6700\u4f4e\u6700\u9ad8\uff0c\u6700\u6709\u7528\u7684\u662f\"\u6296\u52a8\"\uff08jitter\uff09\u3002\u6211\u76f4\u63a5\u7528\u5ef6\u8fdf\u7684<strong>\u6807\u51c6\u5dee<\/strong>\u6765\u7b97\uff1a<\/p>\n<pre style=\"background:#f4f4f5;padding:12px;border-radius:8px;overflow:auto;\"><code>jitter = \u221a( \u03a3(\u6837\u672c \u2212 \u5747\u503c)\u00b2 \/ \u6837\u672c\u6570 )<\/code><\/pre>\n<p>\u6807\u51c6\u5dee\u8d8a\u5927\uff0c\u8bf4\u660e\u7f51\u7edc\u8d8a\"\u559c\u6012\u65e0\u5e38\"\u3002\u8fd9\u6bd4\u5355\u7eaf\u770b\u5e73\u5747\u5ef6\u8fdf\u66f4\u80fd\u89e3\u91ca\"\u4e3a\u5565 ping \u5f88\u4f4e\u4f46\u5c31\u662f\u5361\"\u3002<\/p>\n<h3>\u81ea\u52a8\u8bc4\u7ea7<\/h3>\n<p>\u7efc\u5408\u5e73\u5747\u5ef6\u8fdf\u3001\u4e22\u5305\u7387\u3001\u6296\u52a8\u7ed9\u4e2a\u7ed3\u8bba\uff1a\u5747\u503c&lt;50 \u4e14\u96f6\u4e22\u5305\u4e14\u6296\u52a8\u5c0f\u5c31\u662f\"\u4f18\u79c0\"\uff1b\u5f80\u540e\u4f9d\u6b21\u662f\u826f\u597d\u3001\u4e00\u822c\u3001\u8f83\u5dee\u3002\u903b\u8f91\u4e0d\u590d\u6742\uff0c\u5c31\u662f\u51e0\u6863 if \u5224\u65ad\u3002<\/p>\n<h3>\u53ef\u9009\u63a5 AI<\/h3>\n<p>\u5206\u6790\u533a\u80fd\u586b DeepSeek \u7684 key\uff0c\u70b9\"\u8fd0\u884c\u5206\u6790\"\u5c31\u628a\u7edf\u8ba1\u6458\u8981\u53d1\u7ed9 AI\uff0c\u8ba9\u5b83\u5410\u4e00\u6bb5\u8bca\u65ad\u3002\u4e0d\u586b\u4e5f\u80fd\u7528\uff0c\u9000\u56de\u7eaf\u7edf\u8ba1\u3002<\/p>\n<h2>\u4e00\u4e2a\u5b9e\u8bdd<\/h2>\n<p>\u5b83\u4e0d\u662f\u771f\u6b63\u7684 ping\uff08ICMP\uff09\uff0c\u6d4b\u7684\u662f\u4e00\u6b21 HTTP \u5f80\u8fd4\uff0c\u542b DNS\u3001\u63e1\u624b\u3001\u670d\u52a1\u7aef\u5904\u7406\uff0c\u6240\u4ee5\u6570\u503c\u4f1a\u6bd4\u7cfb\u7edf ping \u504f\u5927\uff0c\u4f46\u4e5f\u66f4\u63a5\u8fd1\u771f\u5b9e\u8bbf\u95ee\u4f53\u9a8c\u3002\u53e6\u5916\u5b83\u53d7\u6d4f\u89c8\u5668 <strong>CORS<\/strong> \u9650\u5236\u2014\u2014\u8de8\u57df\u76ee\u6807\u6ca1\u5f00 CORS \u5934\u7684\u8bdd\uff0cfetch \u4f1a\u88ab\u62e6\uff0c\u5de5\u5177\u4f1a\u8bef\u5224\u6210\u4e22\u5305\u3002\u6240\u4ee5<strong>\u6d4b\u81ea\u5df1\u7ad9\u6700\u51c6<\/strong>\u3002<\/p>\n<p>\u5c31\u8fd9\u4e9b\u3002\u4e00\u4e2a\u6587\u4ef6\uff0c\u96f6\u90e8\u7f72\uff0c\u60f3\u770b\u7f51\u7edc\"\u5fc3\u8df3\"\u7684\u65f6\u5019\u6253\u5f00\u6302\u7740\u6d4b\u5341\u5206\u949f\uff0c\u66f2\u7ebf\u4e0d\u4f1a\u9a97\u4f60\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u505a\u4e86\u4e2a\u7f51\u9875\u7248\u7f51\u7edc&#8221;\u5fc3\u7535\u56fe&#8221;\u2014\u2014NetPulse \u4f60\u6709\u6ca1\u6709\u8fc7\u8fd9\u79cd\u611f\u89c9\uff1a\u6d4b\u901f\u7f51\u7ad9\u8bf4\u4f60\u7f51\u901f\u98de\u5feb\uff0c\u53ef\u6253\u6e38\u620f\u5c31\u662f\u4e00\u987f\u4e00\u987f\u7684\uff1f\u95ee\u9898\u5f80\u5f80\u4e0d\u5728&#8221; &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":1,"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/survoid.top\/index.php\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}