{"id":1628,"date":"2022-04-12T10:41:23","date_gmt":"2022-04-12T02:41:23","guid":{"rendered":"https:\/\/www.strongd.net\/?p=1628"},"modified":"2022-04-12T10:41:23","modified_gmt":"2022-04-12T02:41:23","slug":"%e7%a7%bb%e5%8b%95%e7%ab%afh5%e7%9c%9f%e6%a9%9f%e8%aa%bf%e8%a9%a6%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=1628","title":{"rendered":"\u79fb\u52d5\u7aefH5\u771f\u6a5f\u8abf\u8a66\u65b9\u6848"},"content":{"rendered":"<div>\n<div>\n<p><span>\u4eca\u5e74\u5165\u8077\u4e86\u4e00\u5bb6\u505a\u76f4\u64ad\u7684\u516c\u53f8\uff0c\u4e3b\u8981\u662f\u8ca0\u8cacAPP\u4e2d\u5167\u5d4cwebview\u9801\u9762\u7684\u958b\u767c\uff0c\u4e4b\u524d\u79fb\u52d5\u7aef\u517c\u5bb9\u7d93\u9a57\u6bd4\u8f03\u5c11\uff0c\u5c0d\u65bc\u6211\u4f86\u8aaa\u6700\u5927\u7684\u56f0\u64fe\u5c31\u662f\u7db2\u9801\u517c\u5bb9\u6027\u554f\u984c\u3002<\/span><\/p>\n<p><span>\u5728Chrome\u700f\u89bd\u5668\u7684\u6a21\u64ec\u5668\u9032\u884c\u958b\u767c\u8abf\u8a66\u5df2\u7d93\u5b8c\u7f8e\u5b8c\u6210\u4e86\u9700\u6c42\u4e4b\u5f8c\uff0c\u4e00\u5230\u9a57\u6536\u6216\u8005\u4e0a\u7dda\uff0c\u5c31\u51fa\u73fe\u5404\u7a2e\u517c\u5bb9\u5f15\u8d77\u7684bug\uff0c\u8981\u89e3\u6c7a\u9084\u7279\u5225\u66f2\u6298\uff0c\u4e0d\u50c5\u8981\u63a2\u7d22Android\u548ciOS\u624b\u6a5f\u7684\u4e0d\u540c\u8abf\u8a66\u65b9\u5f0f\uff0c\u9084\u8981\u652f\u6301\u5728\u4e0d\u540c\u700f\u89bd\u5668\u6216\u8005APP\u4e0a\u8abf\u8a66\uff0c\u6975\u5927\u7684\u5f71\u97ff\u4e86\u958b\u767c\u7684\u6548\u7387\u3002<\/span><\/p>\n<p><span>\u96d6\u7136\u6211\u5011\u4e5f\u53ef\u4ee5\u901a\u904e\u6a21\u64ec\u5668\u9032\u884c\u958b\u767c\u8abf\u8a66\uff0c\u4f46\u6a21\u64ec\u7d42\u7a76\u662f\u6a21\u64ec\uff0c\u5728\u67d0\u4e9b\u5834\u666f\u4e0b\u771f\u6a5f\u9084\u662f\u4e0d\u53ef\u6216\u7f3a\uff0c\u5c24\u5176\u662f\u7279\u5b9a\u6a5f\u578b\u7248\u672c\u7684\u554f\u984c\u3002<\/span><\/p>\n<p><span>\u4e00\u822c\u60c5\u6cc1\u4e0b\uff0c\u771f\u6a5fWeb\u8abf\u8a66\u8981\u600e\u9ebc\u505a\u5462\uff1f<\/span><\/p>\n<h3 data-id=\"heading-0\"><span>\u4e00\u3001vConsole<\/span><\/h3>\n<p><strong><span>npm\u5730\u5740\uff1a<\/span><\/strong> <a title=\"https:\/\/github.com\/Tencent\/vConsole\" href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fgithub.com%2FTencent%2FvConsole\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span>github.com\/Tencent\/vCo\u2026<\/span><\/a><\/p>\n<p><strong><span>\u4ecb\u7d39\uff1a<\/span><\/strong><span> vConsole\u63d2\u4ef6\u662f\u4e00\u500b\u79fb\u52d5\u7aef\u8f15\u91cf\u53ef\u64f4\u5c55\u7684\u5de5\u5177\uff0c\u5176\u529f\u80fd\u548c\u96fb\u8166\u7aef\u7684\u63a7\u5236\u53f0\u57fa\u672c\u4e00\u81f4\uff0c\u80fd\u904b\u884cJS\u4ee3\u78bc\u3001\u67e5\u770bcookie\u3001\u6293\u5305\u7b49<\/span><\/p>\n<p><strong><span>\u4f7f\u7528\uff1a<\/span><\/strong><span> \u5728head\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u78bc\u5373\u53ef<\/span><\/p>\n<pre><code class=\"hljs language-js copyable\" lang=\"js\">&lt;script src=<span class=\"hljs-string\">\"https:\/\/cdn.bootcss.com\/vConsole\/3.3.4\/vconsole.min.js\"<\/span>&gt;&lt;\/script&gt;\r\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">script<\/span>&gt;<\/span><span class=\"javascript\">\r\n   <span class=\"hljs-comment\">\/\/ \u521d\u59cb\u5316<\/span>\r\n   <span class=\"hljs-keyword\">var<\/span> vConsole = <span class=\"hljs-keyword\">new<\/span> VConsole();\r\n   <span class=\"hljs-built_in\">console<\/span>.log(<span class=\"hljs-string\">\"hello vconsole\"<\/span>);\r\n<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">script<\/span>&gt;<\/span><\/span>\r\n<span class=\"copy-code-btn\">\u590d\u5236\u4ee3\u7801<\/span><\/code><\/pre>\n<p><span>\u5982\u679c\u662f\u60f3\u901a\u904enpm\u5b89\u88dd\u6216\u8005\u5c0d\u65bcTypeScript\u7684\u4f7f\u7528\u65b9\u5f0f\u8acb\u53bb\u5009\u5eab\u67e5\u770b\uff01<\/span><\/p>\n<p><strong><span>\u8abf\u8a66\uff1a<\/span><\/strong> <img decoding=\"async\" class=\"medium-zoom-image\" src=\"https:\/\/p3-juejin.byteimg.com\/tos-cn-i-k3u1fbpfcp\/351dcbaf01054d429a5c183a3e4afff5~tplv-k3u1fbpfcp-zoom-in-crop-mark:1304:0:0:0.awebp\" alt=\"vConsole\" \/><\/p>\n<p><strong><span>\u9762\u677f\uff1a<\/span><\/strong> <img decoding=\"async\" class=\"medium-zoom-image\" src=\"https:\/\/p3-juejin.byteimg.com\/tos-cn-i-k3u1fbpfcp\/f50cc90abe904d6e9ce619f95da31262~tplv-k3u1fbpfcp-zoom-in-crop-mark:1304:0:0:0.awebp\" alt=\"\u5831\u932f\" \/><\/p>\n<p><strong><span>\u5176\u5be6\u548cconsole\u63a7\u5236\u53f0\u4e00\u6a23\uff0c\u6253\u958b\u4e00\u500b\u9801\u9762\u7684\u6642\u5019\uff0c\u4e0b\u65b9\u6703\u51fa\u73fe\u4e00\u500b\u7da0\u8272\u7684\u201cvConsole\u201d\u6309\u9215\uff0c\u9ede\u64ca\u6309\u9215\u5373\u53ef\u6253\u958b\u63a7\u5236\u53f0\uff0c\u5728\u201clog\u201d\u9801\u9762\u4e2d\u8f38\u5165JS\u4ee3\u78bc\uff0c\u5373\u53ef\u57f7\u884c\u8173\u672c\uff0c\u201cNetwork\u201d\u9801\u9762\u70ba\u5206\u6790\u7db2\u7d61\u6703\u8a71\u5217\u8868\uff0c\u201cSystem\u201d\u9801\u9762\u986f\u793a\u5354\u8b70\u982dUser-Agent\u3001\u7cfb\u7d71\u4fe1\u606f\u7db2\u7d61\u72c0\u614b\u7b49\u4fe1\u606f\uff0c\u201cStorage\u201d\u9801\u9762\u70bacookie\u4fe1\u606f\u7b49<\/span><\/strong><\/p>\n<h3 data-id=\"heading-1\"><span>\u4e8c\u3001Eruda<\/span><\/h3>\n<p><strong><span>npm\u5730\u5740\uff1a<\/span><\/strong> <a title=\"https:\/\/github.com\/liriliri\/eruda\" href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fgithub.com%2Fliriliri%2Feruda\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span>github.com\/liriliri\/er\u2026<\/span><\/a><\/p>\n<p><strong><span>\u4ecb\u7d39\uff1a<\/span><\/strong><span> Eruda \u662f\u4e00\u500b\u5c08\u70ba\u524d\u7aef\u79fb\u52d5\u7aef\u3001\u79fb\u52d5\u7aef\u8a2d\u8a08\u7684\u8abf\u8a66\u9762\u677f\uff0c\u985e\u4f3cChrome DevTools \u7684\u8ff7\u4f60\u7248\uff08\u6c92\u6709chrome\u5f37\u5927\u9019\u500b\u662f\u53ef\u4ee5\u80af\u5b9a\u7684\uff09\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a\u6355\u7372console \u65e5\u8a8c\u3001\u6aa2\u67e5\u5143\u7d20\u72c0\u614b\u3001\u986f\u793a\u6027\u80fd\u6307\u6a19\u3001\u6355\u7372XHR\u8acb\u6c42\u3001\u986f\u793a\u672c\u5730\u5b58\u5132\u548cCookie\u4fe1\u606f\u3001\u700f\u89bd\u5668\u7279\u6027\u6aa2\u6e2c\u7b49\u7b49\u3002<\/span><\/p>\n<p><strong><span>\u4f7f\u7528\uff1a<\/span><\/strong><span> \u5728head\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u78bc\u5373\u53ef<\/span><\/p>\n<pre><code class=\"hljs language-js copyable\" lang=\"js\">&lt;script src=<span class=\"hljs-string\">\"\/\/cdn.jsdelivr.net\/npm\/eruda\"<\/span>&gt;&lt;\/script&gt;\r\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">script<\/span>&gt;<\/span>eruda.init();<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">script<\/span>&gt;<\/span><\/span>\r\n<span class=\"copy-code-btn\">\u590d\u5236\u4ee3\u7801<\/span><\/code><\/pre>\n<p><strong><span>Eruda \u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u9eb5\u677f\u8ddfvConsole\u5dee\u4e0d\u591a\uff0c\u66f4\u8a73\u7d30\u7684\u4f7f\u7528\u65b9\u6cd5\u53ef\u53bb\u5b98\u65b9\u5009\u5eab\u67e5\u770b\uff01<\/span><\/strong><\/p>\n<h3 data-id=\"heading-2\"><span>\u4e09\u3001Fildder<\/span><\/h3>\n<p><strong><span>\u4e0b\u8f09\u5730\u5740\uff1a<\/span><\/strong> <a title=\"https:\/\/www.telerik.com\/fiddler\" href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fwww.telerik.com%2Ffiddler\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span>www.telerik.com\/fiddler<\/span><\/a><\/p>\n<p><strong><span>\u4ecb\u7d39\uff1a<\/span><\/strong><span> Fiddler\u662f\u6700\u5f37\u5927\u6700\u597d\u7528\u7684Web\u8abf\u8a66\u5de5\u5177\u4e4b\u4e00\uff0c\u5b83\u80fd\u8a18\u9304\u6240\u6709\u5ba2\u6236\u7aef\u548c\u670d\u52d9\u5668\u7684http\u548chttps\u8acb\u6c42\uff0c\u5141\u8a31\u4f60\u76e3\u8996\uff0c\u8a2d\u7f6e\u65b7\u9ede\uff0c\u751a\u81f3\u4fee\u6539\u8f38\u5165\u8f38\u51fa\u6578\u64da\uff0cFiddler\u7121\u8ad6\u5c0d\u958b\u767c\u4eba\u54e1\u6216\u8005\u6e2c\u8a66\u4eba\u54e1\u4f86\u8aaa\uff0c\u90fd\u662f\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177<\/span><\/p>\n<p><strong><span>\u4f7f\u7528\uff1a<\/span><\/strong><span> 1\u3001\u4e0b\u8f09\u5b89\u88dd\u4e26\u914d\u7f6e\u597dfillder\u5de5\u5177 <\/span><img decoding=\"async\" class=\"medium-zoom-image\" src=\"https:\/\/p3-juejin.byteimg.com\/tos-cn-i-k3u1fbpfcp\/014bf033447845a88ca33a5fcdbd3368~tplv-k3u1fbpfcp-zoom-in-crop-mark:1304:0:0:0.awebp\" alt=\"fildder\u5de5\u5177\" \/><\/p>\n<p><span>2\u3001\u624b\u6a5f\u548cfildder\u93c8\u63a5\u540c\u4e00\u500b\u7db2\u7d61\uff0c\u7136\u5f8c\u624b\u6a5f\u958b\u555f\u624b\u52d5\u4ee3\u7406\u4e26\u5b89\u88dd\u8b49\u66f8<\/span><\/p>\n<p><span>a.\u914d\u7f6e\u624b\u52d5\u4ee3\u7406 <\/span><img decoding=\"async\" class=\"medium-zoom-image\" src=\"https:\/\/p3-juejin.byteimg.com\/tos-cn-i-k3u1fbpfcp\/6e62b6495a744e7184c6adadbd176b1e~tplv-k3u1fbpfcp-zoom-in-crop-mark:1304:0:0:0.awebp\" alt=\"\u914d\u7f6e\u4ee3\u7406\" \/><\/p>\n<p><span>b.\u4e0b\u8f09\u8b49\u66f8\u624b\u6a5f\u700f\u89bd\u5668\u5730\u5740\u8f38\u5165\u4ee3\u7406\u7684\u4e3b\u6a5f\u540d\u548c\u7aef\u53e3\uff0810.0,5.155::8888\uff09 <\/span><img decoding=\"async\" class=\"medium-zoom-image\" src=\"https:\/\/p3-juejin.byteimg.com\/tos-cn-i-k3u1fbpfcp\/9c5bea0f77634aa98aba36c1ce467695~tplv-k3u1fbpfcp-zoom-in-crop-mark:1304:0:0:0.awebp\" alt=\"\u4e0b\u8f09\u8b49\u66f8\" \/><\/p>\n<p><span>c.\u5b89\u88dd\u8b49\u66f8 <\/span><img decoding=\"async\" class=\"medium-zoom-image\" src=\"https:\/\/p3-juejin.byteimg.com\/tos-cn-i-k3u1fbpfcp\/c0ee5230eb414022a158db0d1aecad3a~tplv-k3u1fbpfcp-zoom-in-crop-mark:1304:0:0:0.awebp\" alt=\"\u5b89\u88dd\" \/><\/p>\n<p><strong><span>\u4e0a\u9762\u6b65\u9a5f\u5b8c\u6210\u5f8c\u7136\u5f8c\u6253\u958bH5\u9801\u9762\uff0c\u5982\u679c\u80fd\u5728fildder\u6293\u5230\u9801\u9762\u8cc7\u6e90\u8868\u793a\u6293\u5305\u6210\u529f<\/span><\/strong><\/p>\n<p><span>3\u3001\u7136\u5f8c\u7dda\u4e0a\u6216\u5247\u6e2c\u8a66\u74b0\u5883\u6709\u554f\u984c\u7684\u76f8\u95dc\u6587\u4ef6\u6216\u8005\u9801\u9762\u4ee3\u7406\u5230\u672c\u5730\u8abf\u8a66 <\/span><img decoding=\"async\" class=\"medium-zoom-image\" src=\"https:\/\/p3-juejin.byteimg.com\/tos-cn-i-k3u1fbpfcp\/738fd4f299164f36871d8c97ae5d9fee~tplv-k3u1fbpfcp-zoom-in-crop-mark:1304:0:0:0.awebp\" alt=\"\u6293\u5305\u4ee3\u7406\u6b65\u9a5f\" \/><\/p>\n<p><strong><span>AutoResponder\u4e0d\u50c5\u53ef\u4ee5\u4ee3\u7406\u6587\u4ef6\uff0c\u9084\u80fd\u4ee3\u7406\u63a5\u53e3\u8fd4\u56de\u7b49\uff0c\u4ee3\u7406\u6210\u529f\u5f8c\u5c31\u53ef\u4ee5\u5728\u672c\u5730\u6587\u4ef6\u4e2ddebugger\u65b7\u9ede\u4e00\u6b65\u6b65\u8abf\u8a66\uff0c\u627e\u51fa\u7dda\u4e0a\u771f\u6a5f\u51fa\u73fe\u7684\u554f\u984c<\/span><\/strong><\/p>\n<h3 data-id=\"heading-3\"><span>\u56db\u3001\u8abf\u8a66\u672c\u5730Vue\u9805\u76ee\u6b65\u9a5f<\/span><\/h3>\n<pre><code class=\"copyable\">1\u3001\u624b\u673a\u548cfildder\u8f6f\u4ef6\u540c\u4e00\u4e2a\u7f51\u7edc\r\n\r\n2\u3001\u624b\u673a\u7f51\u7edc\u8bbe\u7f6e\u624b\u52a8\u4ee3\u7406\uff0cip\u4e3a\u7535\u8111\u7f51\u7edc\u7684ipv4\u5730\u5740\uff0c\u7aef\u53e3\u4e3afiddler\u8bbe\u7f6e\u7684\u7aef\u53e3\u9ed8\u8ba48080\r\n\r\n3\u3001\u624b\u673a\u6d4f\u89c8\u5668\u8f93\u5165\u4ee3\u7406\u7684\u5730\u5740+\u7aef\u53e3\uff0c\u5b89\u88c5\u8bc1\u4e66\r\n\r\n4\u3001\u672c\u5730\u9879\u76ee\u8dd1\u8d77\u6765\uff0c\u5982\u679c\u662f\u57df\u540d\u8bbf\u95ee\u7684\uff0c\u5219\u9700\u8981\u914d\u7f6ehosts\r\n\r\n5\u3001\u624b\u673a\u6253\u5f00\u8bbf\u95ee\u7684\u5730\u5740\u5c31\u53ef\u4ee5debugger\u8c03\u8bd5\u4e86\r\n<span class=\"copy-code-btn\">\u590d\u5236\u4ee3\u7801<\/span><\/code><\/pre>\n<hr \/>\n<p>&nbsp;<\/p>\n<\/div>\n<p>\u4f5c\u8005\uff1aLiben<br \/>\n\u94fe\u63a5\uff1ahttps:\/\/juejin.cn\/post\/6907546374422659079<br \/>\n\u6765\u6e90\uff1a\u7a00\u571f\u6398\u91d1<br \/>\n\u8457\u4f5c\u6743\u5f52\u4f5c\u8005\u6240\u6709\u3002\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\u83b7\u5f97\u6388\u6743\uff0c\u975e\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5e74\u5165\u8077\u4e86\u4e00\u5bb6\u505a\u76f4\u64ad\u7684\u516c\u53f8\uff0c\u4e3b\u8981\u662f\u8ca0\u8cacAPP\u4e2d\u5167\u5d4cwebview\u9801\u9762\u7684\u958b\u767c\uff0c\u4e4b\u524d\u79fb\u52d5\u7aef\u517c\u5bb9\u7d93\u9a57\u6bd4\u8f03\u5c11\uff0c\u5c0d\u65bc\u6211\u4f86\u8aaa\u6700\u5927\u7684\u56f0\u64fe\u5c31\u662f\u7db2\u9801\u517c\u5bb9\u6027\u554f\u984c\u3002 \u5728Chrome\u700f\u89bd\u5668\u7684\u6a21\u64ec\u5668\u9032\u884c\u958b\u767c\u8abf\u8a66\u5df2\u7d93\u5b8c\u7f8e\u5b8c\u6210\u4e86\u9700\u6c42\u4e4b\u5f8c\uff0c\u4e00\u5230\u9a57\u6536\u6216\u8005\u4e0a\u7dda\uff0c\u5c31\u51fa\u73fe\u5404\u7a2e\u517c\u5bb9\u5f15\u8d77\u7684bug\uff0c\u8981\u89e3\u6c7a\u9084\u7279\u5225\u66f2\u6298\uff0c\u4e0d\u50c5\u8981\u63a2\u7d22Android\u548ciOS\u624b\u6a5f\u7684\u4e0d\u540c\u8abf\u8a66\u65b9\u5f0f\uff0c\u9084\u8981\u652f\u6301\u5728\u4e0d\u540c\u700f\u89bd\u5668\u6216\u8005APP\u4e0a\u8abf\u8a66\uff0c\u6975\u5927\u7684\u5f71\u97ff\u4e86\u958b\u767c\u7684\u6548\u7387\u3002 \u96d6\u7136\u6211\u5011\u4e5f\u53ef\u4ee5\u901a\u904e\u6a21\u64ec\u5668\u9032\u884c\u958b\u767c\u8abf\u8a66\uff0c\u4f46\u6a21\u64ec\u7d42\u7a76\u662f\u6a21\u64ec\uff0c\u5728\u67d0\u4e9b\u5834\u666f\u4e0b\u771f\u6a5f\u9084\u662f\u4e0d\u53ef\u6216\u7f3a\uff0c\u5c24\u5176\u662f\u7279\u5b9a\u6a5f\u578b\u7248\u672c\u7684\u554f\u984c\u3002 \u4e00\u822c\u60c5\u6cc1\u4e0b\uff0c\u771f\u6a5fWeb\u8abf\u8a66\u8981\u600e\u9ebc\u505a\u5462\uff1f \u4e00\u3001vConsole npm\u5730\u5740\uff1a github.com\/Tencent\/vCo\u2026 \u4ecb\u7d39\uff1a vConsole\u63d2\u4ef6\u662f\u4e00\u500b\u79fb\u52d5\u7aef\u8f15\u91cf\u53ef\u64f4\u5c55\u7684\u5de5\u5177\uff0c\u5176\u529f\u80fd\u548c\u96fb\u8166\u7aef\u7684\u63a7\u5236\u53f0\u57fa\u672c\u4e00\u81f4\uff0c\u80fd\u904b\u884cJS\u4ee3\u78bc\u3001\u67e5\u770bcookie\u3001\u6293\u5305\u7b49 \u4f7f\u7528\uff1a \u5728head\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u78bc\u5373\u53ef &lt;script src=&#8221;https:\/\/cdn.bootcss.com\/vConsole\/3.3.4\/vconsole.min.js&#8221;&gt;&lt;\/script&gt; &lt;script&gt; \/\/ \u521d\u59cb\u5316 var vConsole = new VConsole(); console.log(&#8220;hello vconsole&#8221;); &lt;\/script&gt; \u590d\u5236\u4ee3\u7801 \u5982\u679c\u662f\u60f3\u901a\u904enpm\u5b89\u88dd\u6216\u8005\u5c0d\u65bcTypeScript\u7684\u4f7f\u7528\u65b9\u5f0f\u8acb\u53bb\u5009\u5eab\u67e5\u770b\uff01 \u8abf\u8a66\uff1a \u9762\u677f\uff1a \u5176\u5be6\u548cconsole\u63a7\u5236\u53f0\u4e00\u6a23\uff0c\u6253\u958b\u4e00\u500b\u9801\u9762\u7684\u6642\u5019\uff0c\u4e0b\u65b9\u6703\u51fa\u73fe\u4e00\u500b\u7da0\u8272\u7684\u201cvConsole\u201d\u6309\u9215\uff0c\u9ede\u64ca\u6309\u9215\u5373\u53ef\u6253\u958b\u63a7\u5236\u53f0\uff0c\u5728\u201clog\u201d\u9801\u9762\u4e2d\u8f38\u5165JS\u4ee3\u78bc\uff0c\u5373\u53ef\u57f7\u884c\u8173\u672c\uff0c\u201cNetwork\u201d\u9801\u9762\u70ba\u5206\u6790\u7db2\u7d61\u6703\u8a71\u5217\u8868\uff0c\u201cSystem\u201d\u9801\u9762\u986f\u793a\u5354\u8b70\u982dUser-Agent\u3001\u7cfb\u7d71\u4fe1\u606f\u7db2\u7d61\u72c0\u614b\u7b49\u4fe1\u606f\uff0c\u201cStorage\u201d\u9801\u9762\u70bacookie\u4fe1\u606f\u7b49 \u4e8c\u3001Eruda npm\u5730\u5740\uff1a github.com\/liriliri\/er\u2026 \u4ecb\u7d39\uff1a Eruda \u662f\u4e00\u500b\u5c08\u70ba\u524d\u7aef\u79fb\u52d5\u7aef\u3001\u79fb\u52d5\u7aef\u8a2d\u8a08\u7684\u8abf\u8a66\u9762\u677f\uff0c\u985e\u4f3cChrome DevTools \u7684\u8ff7\u4f60\u7248\uff08\u6c92\u6709chrome\u5f37\u5927\u9019\u500b\u662f\u53ef\u4ee5\u80af\u5b9a\u7684\uff09\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a\u6355\u7372console \u65e5\u8a8c\u3001\u6aa2\u67e5\u5143\u7d20\u72c0\u614b\u3001\u986f\u793a\u6027\u80fd\u6307\u6a19\u3001\u6355\u7372XHR\u8acb\u6c42\u3001\u986f\u793a\u672c\u5730\u5b58\u5132\u548cCookie\u4fe1\u606f\u3001\u700f\u89bd\u5668\u7279\u6027\u6aa2\u6e2c\u7b49\u7b49\u3002 \u4f7f\u7528\uff1a \u5728head\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u78bc\u5373\u53ef &lt;script src=&#8221;\/\/cdn.jsdelivr.net\/npm\/eruda&#8221;&gt;&lt;\/script&gt; &lt;script&gt;eruda.init();&lt;\/script&gt; \u590d\u5236\u4ee3\u7801 Eruda \u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u9eb5\u677f\u8ddfvConsole\u5dee\u4e0d\u591a\uff0c\u66f4\u8a73\u7d30\u7684\u4f7f\u7528\u65b9\u6cd5\u53ef\u53bb\u5b98\u65b9\u5009\u5eab\u67e5\u770b\uff01 \u4e09\u3001Fildder \u4e0b\u8f09\u5730\u5740\uff1a www.telerik.com\/fiddler \u4ecb\u7d39\uff1a Fiddler\u662f\u6700\u5f37\u5927\u6700\u597d\u7528\u7684Web\u8abf\u8a66\u5de5\u5177\u4e4b\u4e00\uff0c\u5b83\u80fd\u8a18\u9304\u6240\u6709\u5ba2\u6236\u7aef\u548c\u670d\u52d9\u5668\u7684http\u548chttps\u8acb\u6c42\uff0c\u5141\u8a31\u4f60\u76e3\u8996\uff0c\u8a2d\u7f6e\u65b7\u9ede\uff0c\u751a\u81f3\u4fee\u6539\u8f38\u5165\u8f38\u51fa\u6578\u64da\uff0cFiddler\u7121\u8ad6\u5c0d\u958b\u767c\u4eba\u54e1\u6216\u8005\u6e2c\u8a66\u4eba\u54e1\u4f86\u8aaa\uff0c\u90fd\u662f\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177 \u4f7f\u7528\uff1a 1\u3001\u4e0b\u8f09\u5b89\u88dd\u4e26\u914d\u7f6e\u597dfillder\u5de5\u5177 2\u3001\u624b\u6a5f\u548cfildder\u93c8\u63a5\u540c\u4e00\u500b\u7db2\u7d61\uff0c\u7136\u5f8c\u624b\u6a5f\u958b\u555f\u624b\u52d5\u4ee3\u7406\u4e26\u5b89\u88dd\u8b49\u66f8 a.\u914d\u7f6e\u624b\u52d5\u4ee3\u7406 &hellip; <a href=\"https:\/\/www.strongd.net\/?p=1628\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u79fb\u52d5\u7aefH5\u771f\u6a5f\u8abf\u8a66\u65b9\u6848<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,35],"tags":[],"class_list":["post-1628","post","type-post","status-publish","format-standard","hentry","category-vue","category-35"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1628"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1628\/revisions"}],"predecessor-version":[{"id":1629,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1628\/revisions\/1629"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}