{"id":3473,"date":"2023-11-02T17:20:00","date_gmt":"2023-11-02T09:20:00","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=3473"},"modified":"2023-11-02T17:20:00","modified_gmt":"2023-11-02T09:20:00","slug":"%e5%89%8d%e7%ab%af%e7%ba%bf%e4%b8%8a%e9%83%a8%e7%bd%b2%ef%bc%8c%e5%a6%82%e4%bd%95%e9%80%9a%e7%9f%a5%e7%94%a8%e6%88%b7%e6%9c%89%e6%96%b0%e7%89%88%e6%9c%ac%ef%bc%9f%ef%bc%9f%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/vue\/%e5%89%8d%e7%ab%af%e7%ba%bf%e4%b8%8a%e9%83%a8%e7%bd%b2%ef%bc%8c%e5%a6%82%e4%bd%95%e9%80%9a%e7%9f%a5%e7%94%a8%e6%88%b7%e6%9c%89%e6%96%b0%e7%89%88%e6%9c%ac%ef%bc%9f%ef%bc%9f%ef%bc%9f\/","title":{"rendered":"\u524d\u7aef\u7ebf\u4e0a\u90e8\u7f72\uff0c\u5982\u4f55\u901a\u77e5\u7528\u6237\u6709\u65b0\u7248\u672c\uff1f\uff1f\uff1f"},"content":{"rendered":"<div class='wxsyncmain'>\n<section style=\"margin-right: 16px;margin-bottom: 0px;margin-left: 16px;outline: 0px;letter-spacing: 0.544px;text-wrap: wrap;font-size: 16px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(63, 63, 63);word-spacing: 0.8px;background-color: rgb(255, 255, 255);text-align: center;visibility: visible;\" data-mpa-powered-by=\"yiban.io\"><span style=\"color: black;font-size: 15px;background-color: rgba(0, 0, 0, 0.05);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0px;text-align: left;\">\u4eca\u5929\u7ed9\u5927\u5bb6\u5206\u4eab\u4e00\u4e2a\u7528\u4e8e\u5b9e\u65f6\u68c0\u6d4b<\/span><code style=\"letter-spacing: 0px;text-align: left;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">web<\/code><span style=\"color: black;font-size: 15px;background-color: rgba(0, 0, 0, 0.05);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0px;text-align: left;\">\u5e94\u7528\u66f4\u65b0\u7684<\/span><code style=\"letter-spacing: 0px;text-align: left;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">JavaScript<\/code><span style=\"color: black;font-size: 15px;background-color: rgba(0, 0, 0, 0.05);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0px;text-align: left;\">\u5e93\uff1a<\/span><code style=\"letter-spacing: 0px;text-align: left;font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">version-polling<\/code><span style=\"color: black;font-size: 15px;background-color: rgba(0, 0, 0, 0.05);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0px;text-align: left;\">\uff01<\/span><span style=\"color: black;font-size: 15px;background-color: rgba(0, 0, 0, 0.05);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0px;text-align: left;\">\uff01<\/span><span style=\"color: black;font-size: 15px;background-color: rgba(0, 0, 0, 0.05);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0px;text-align: left;\">\uff01<\/span><\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\">\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u524d\u8a00<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;font-size: 15px;\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">version-polling<\/code> \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">JavaScript<\/code> \u5e93\uff0c\u5b83\u53ef\u4ee5\u5b9e\u65f6\u68c0\u6d4b <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">web<\/code> \u5e94\u7528\u7684 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">index.html<\/code> \u6587\u4ef6\u5185\u5bb9\u662f\u5426\u6709\u53d8\u5316\u3002\u5f53\u670d\u52a1\u7aef\u53d1\u5e03\u65b0\u7248\u672c\u540e\uff0c\u524d\u7aef\u4f1a\u81ea\u52a8\u5f39\u51fa\u66f4\u65b0\u63d0\u793a\uff0c\u8ba9\u7528\u6237\u5237\u65b0\u9875\u9762\uff0c\u4ee5\u52a0\u8f7d\u6700\u65b0\u7684\u8d44\u6e90\u548c\u529f\u80fd\u3002\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u548c\u6570\u636e\u51c6\u786e\u6027\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u8bbe\u8ba1\u76ee\u7684<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;font-size: 15px;\">\u4e3a\u4e86\u89e3\u51b3\u540e\u7aef\u90e8\u7f72\u4e4b\u540e\uff0c\u5982\u4f55\u901a\u77e5\u7528\u6237\u7cfb\u7edf\u6709\u65b0\u7248\u672c\uff0c\u5e76\u5f15\u5bfc\u7528\u6237\u5237\u65b0\u9875\u9762\u4ee5\u52a0\u8f7d\u6700\u65b0\u8d44\u6e90\u7684\u95ee\u9898\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u9002\u7528\u573a\u666f<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;font-size: 15px;\">\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u67d0 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">web<\/code> \u5e94\u7528\uff08\u901a\u5e38\u662f\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\uff09\u5f88\u957f\u65f6\u95f4\u4e14\u672a\u5237\u65b0\u9875\u9762\u65f6\uff0c\u5982\u679c\u5e94\u7528\u6709\u65b0\u529f\u80fd\u6dfb\u52a0\u6216\u95ee\u9898\u4fee\u590d\uff0c\u7528\u6237\u53ef\u80fd\u65e0\u6cd5\u53ca\u65f6\u77e5\u9053\u6709\u65b0\u7248\u53d1\u5e03\u3002\u8fd9\u6837\u4f1a\u5bfc\u81f4\u7528\u6237\u7ee7\u7eed\u4f7f\u7528\u65e7\u7248\uff0c\u5f71\u54cd\u7528\u6237\u4f53\u9a8c\u548c\u6570\u636e\u51c6\u786e\u6027\uff0c\u751a\u81f3\u51fa\u73b0\u7a0b\u5e8f\u62a5\u9519\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u529f\u80fd\u7279\u6027<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">\u9488\u5bf9\u524d\u7aef <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">web<\/code> \u5355\u9875\u5e94\u7528\u800c\u8bbe\u8ba1<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">\u7eaf\u524d\u7aef\u6280\u672f\u5b9e\u73b0\uff0c\u4f7f\u7528\u7b80\u5355\uff0c\u4e0d\u9700\u8981\u540e\u7aef\u652f\u6301<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">\u652f\u6301 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">TypeScript<\/code><\/section>\n<\/li>\n<\/ol>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u5b9e\u73b0\u539f\u7406<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">\u4f7f\u7528 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">Web Worker<\/code> API \u5728\u6d4f\u89c8\u5668\u540e\u53f0<strong style=\"color: rgb(130, 127, 196);\">\u8f6e\u8be2<\/strong>\u8bf7\u6c42\u9875\u9762\uff0c\u4e0d\u4f1a\u5f71\u54cd\u4e3b\u7ebf\u7a0b\u8fd0\u884c\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">\u547d\u4e2d\u534f\u5546\u7f13\u5b58\uff0c\u5bf9\u6bd4\u672c\u5730\u548c\u670d\u52a1\u5668\u8bf7\u6c42<strong style=\"color: rgb(130, 127, 196);\">\u54cd\u5e94\u5934<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">etag<\/code>\u5b57\u6bb5<\/strong>\u503c\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">\u5982\u679c<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">etag<\/code>\u503c\u4e0d\u4e00\u81f4\uff0c\u8bf4\u660e\u6709\u66f4\u65b0\uff0c\u5219\u5f39\u51fa\u66f4\u65b0\u63d0\u793a\uff0c\u5e76\u5f15\u5bfc\u7528\u6237\u624b\u52a8<strong style=\"color: rgb(130, 127, 196);\">\u5237\u65b0\u9875\u9762<\/strong>\uff08\u4f8b\u5982\u5f39\u7a97\u63d0\u793a\uff09\uff0c\u5b8c\u6210\u5e94\u7528\u66f4\u65b0\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">\u5f53\u9875\u9762\u4e0d\u53ef\u89c1\u65f6\uff08\u4f8b\u5982\u5207\u6362\u6807\u7b7e\u9875\u6216\u6700\u5c0f\u5316\u7a97\u53e3\uff09\uff0c\u505c\u6b62\u5b9e\u65f6\u68c0\u6d4b\u4efb\u52a1\uff1b\u518d\u6b21\u53ef\u89c1\u65f6\uff08\u4f8b\u5982\u5207\u6362\u56de\u6807\u7b7e\u9875\u6216\u8fd8\u539f\u7a97\u53e3\uff09\uff0c\u6062\u590d\u5b9e\u65f6\u68c0\u6d4b\u4efb\u52a1\u3002<\/section>\n<\/li>\n<\/ol>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u6d4f\u89c8\u5668\u517c\u5bb9\u6027<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;font-size: 15px;\">\u9002\u7528\u4e8e\u652f\u6301\u539f\u751f ES \u6a21\u5757\u7684\u73b0\u4ee3\u6d4f\u89c8\u5668\uff0c\u5177\u4f53\u53ef\u53c2\u8003\u4ee5\u4e0b browserslist \u914d\u7f6e<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171120840.jpeg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #61aeee;line-height: 26px;\">&lt;!DOCTYPE<span style=\"line-height: 26px;\">html<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">html<\/span><span style=\"color: #d19a66;line-height: 26px;\">lang<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"en\"<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">head<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">meta<\/span><span style=\"color: #d19a66;line-height: 26px;\">charset<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"UTF-8\"<\/span>\/&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">meta<\/span><span style=\"color: #d19a66;line-height: 26px;\">http-equiv<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"X-UA-Compatible\"<\/span><span style=\"color: #d19a66;line-height: 26px;\">content<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"IE=edge\"<\/span>\/&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">meta<\/span><span style=\"color: #d19a66;line-height: 26px;\">name<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"viewport\"<\/span><span style=\"color: #d19a66;line-height: 26px;\">content<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"width=device-width,initial-scale=1.0\"<\/span>\/&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">title<\/span>&gt;<\/span>\u524d\u7aef\u9875\u9762\u81ea\u52a8\u68c0\u6d4b\u66f4\u65b0-\u793a\u4f8b<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">title<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">head<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">body<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">script<\/span><span style=\"color: #d19a66;line-height: 26px;\">src<\/span>=<span style=\"color: #98c379;line-height: 26px;\">\"\/\/unpkg.com\/version-polling\/dist\/version-polling.min.js\"<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">script<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">script<\/span>&gt;<\/span><span style=\"line-height: 26px;\">VersionPolling.createVersionPolling({<span style=\"color: #d19a66;line-height: 26px;\">appETagKey<\/span>:<span style=\"color: #98c379;line-height: 26px;\">\"__APP_ETAG__\"<\/span>,<span style=\"color: #d19a66;line-height: 26px;\">pollingInterval<\/span>:<span style=\"color: #d19a66;line-height: 26px;\">5<\/span>*<span style=\"color: #d19a66;line-height: 26px;\">1000<\/span>,<span style=\"color: #d19a66;line-height: 26px;\">onUpdate<\/span>:<span style=\"line-height: 26px;\">(<span style=\"line-height: 26px;\">self<\/span>)=&gt;<\/span>{<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/\u5f53\u68c0\u6d4b\u5230\u6709\u65b0\u7248\u672c\u65f6\uff0c\u6267\u884c\u7684\u56de\u8c03\u51fd\u6570\uff0c\u53ef\u4ee5\u5728\u8fd9\u91cc\u63d0\u793a\u7528\u6237\u5237\u65b0\u9875\u9762<\/span><span style=\"color: #c678dd;line-height: 26px;\">const<\/span>result=confirm(<span style=\"color: #98c379;line-height: 26px;\">\"\u9875\u9762\u6709\u66f4\u65b0\uff0c\u70b9\u51fb\u786e\u5b9a\u5237\u65b0\u9875\u9762\uff01\"<\/span>);<span style=\"color: #c678dd;line-height: 26px;\">if<\/span>(result){self.onRefresh();}<span style=\"color: #c678dd;line-height: 26px;\">else<\/span>{self.onCancel();}},});<\/span><span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">script<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">body<\/span>&gt;<\/span><span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">html<\/span>&gt;<\/span><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u6700\u4f73\u5b9e\u8df5<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;font-size: 15px;\">\u5728\u9879\u76ee index.html \u4e0b\u76f4\u63a5\u63d2\u5165 script\uff0c\u7c7b\u4f3c\u4e8e\u767e\u5ea6\u7edf\u8ba1\u90a3\u79cd\u7528\u6cd5\uff0c\u5177\u4f53\u4ee3\u7801\u53c2\u8003:<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;font-size: 15px;\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">https:\/\/github.com\/JoeshuTT\/version-polling<\/code><\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;display: flex;justify-content: center;border-width: initial;border-style: none;border-color: initial;color: rgb(130, 127, 196);\"><span style=\"display: block;width: 35px;height: 35px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');margin-right: -20px;\"><\/span><span style=\"display: flex;align-items: center;font-size: 18px;\">\u6ce8\u610f\u4e8b\u9879<\/span><span style=\"display: block;width: 15px;height: 15px;background-size: 100% 100%;background-repeat: no-repeat;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171113729.png');\"><\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">version-polling \u9700\u8981\u5728\u652f\u6301 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">web worker<\/code> \u548c <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">fetchAPI<\/code> \u7684\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c\uff0c\u4e0d\u652f\u6301 IE \u6d4f\u89c8\u5668<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">version-polling \u9700\u8981\u5728 web \u5e94\u7528\u7684\u5165\u53e3\u6587\u4ef6\uff08\u901a\u5e38\u662f <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">index.html<\/code>\uff09\u4e2d\u5f15\u5165\uff0c\u5426\u5219\u65e0\u6cd5\u68c0\u6d4b\u5230\u66f4\u65b0<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">version-polling \u9700\u8981\u5728 web \u5e94\u7528\u7684\u670d\u52a1\u7aef\u914d\u7f6e<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">\u534f\u5546\u7f13\u5b58<\/code>\uff0c\u5426\u5219\u65e0\u6cd5\u547d\u4e2d\u7f13\u5b58\uff0c\u4f1a\u589e\u52a0\u7f51\u7edc\u8bf7\u6c42<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\">version-polling \u9700\u8981\u5728 web \u5e94\u7528\u7684\u670d\u52a1\u7aef\u4fdd\u8bc1\u6bcf\u6b21\u53d1\u7248\u540e\uff0c<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">index.html<\/code> \u6587\u4ef6\u7684 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(30, 107, 184);background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">etag<\/code> \u5b57\u6bb5\u503c\u4f1a\u6539\u53d8\uff0c\u5426\u5219\u65e0\u6cd5\u68c0\u6d4b\u5230\u66f4\u65b0<\/section>\n<\/li>\n<\/ul>\n<section class=\"mp_profile_iframe_wrp\"><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-id=\"Mzg4NzU5NzY4MQ==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/1gD0GAa6G4oraicNFHoRuQkDwUT87aBC1AejMJtMDP3SeGgBb8e7Ijx8WiahvlkznEp0B3SeLzDAQ0vOskZRc4YA\/0?wx_fmt=png\" data-nickname=\"\u6280\u672f\u80d6\u5b66\u7a0b\u5e8f\" data-alias=\"CodePang\" data-signature=\"\u5341\u56db\u5e74\u7a0b\u5e8f\u5f00\u53d1\u7ecf\u9a8c\u522b\u518d\u56e0\u4e3a\u6280\u672f\u800c\u52a0\u73ed\u8d44\u6599\uff1a\u5173\u6ce8\u540e\u79c1\u4fe1\u770b\u770b\u5b66\u4e60\uff1a\u6bcf\u5468\u548c\u80d6\u54e5\u4e00\u8d77\u9ad8\u6548\u5b66\u4e60\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\"><span style=\"letter-spacing: 0px;\"><\/span><\/section>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;\"><span style=\"letter-spacing: 0px;\"><\/span><\/section>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u6280\u672f\u80d6\u5b66\u7a0b\u5e8f              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u7ed9\u5927\u5bb6\u5206\u4eab\u4e00\u4e2a\u7528\u4e8e\u5b9e\u65f6\u68c0\u6d4bweb\u5e94\u7528\u66f4\u65b0\u7684JavaScript\u5e93\uff1aversion-polling\uff01\uff01\uff01 \u524d\u8a00 version- &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[13],"tags":[],"class_list":["post-3473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vue"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171115663-150x150.jpeg","content_first_image":null,"post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171115663-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171115663.jpeg","post_frist_image":null,"post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171115663-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171115663.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171115663.jpeg","post_all_images":[],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Vue","post_date":"2023-11-02","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":1042,"next_post_id":3210,"next_post_title":"20\u4e2a\u63d0\u5347\u6548\u7387\u7684JS\u7b80\u5199\u6280\u5de7\uff0c\u544a\u522b\u5c4e\u5c71\uff01","previous_post_id":3032,"previous_post_title":"vue \u751f\u6210\u4e8c\u7ef4\u7801\u7684\u4e24\u79cd\u65b9\u5f0f","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3473"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3473\/revisions"}],"predecessor-version":[{"id":3610,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3473\/revisions\/3610"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/3468"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}