{"id":43289,"date":"2023-09-28T16:06:12","date_gmt":"2023-09-28T08:06:12","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=43289"},"modified":"2023-09-28T16:06:12","modified_gmt":"2023-09-28T08:06:12","slug":"czdhsdjs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/43289.html","title":{"rendered":"CVI\u4e2dDelay\u51fd\u6570\u7684\u4ecb\u7ecd"},"content":{"rendered":"

  Delay\u51fd\u6570\u662f\u4e00\u79cdCVI\u4e2d\u7684\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7a0b\u5e8f\u5458\u5728\u67d0\u4e00\u6bb5\u65f6\u95f4\u5185\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u7279\u5b9a\u7684\u529f\u80fd\u3002<\/strong>Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7a0b\u5e8f\u4e2d\u6307\u5b9a\u6682\u505c\u7684\u65f6\u95f4\uff0c\u5373\u53ef\u5b9e\u73b0\u6682\u505c\u7684\u529f\u80fd\u3002\u672c\u6587\u5c06\u6df1\u5165\u4ecb\u7ecdCVI\u4e2dDelay\u51fd\u6570\u7684\u4f7f\u7528\u53ca\u5176\u76f8\u5173\u77e5\u8bc6\u3002<\/p>\n

Delay\u51fd\u6570\u7684\u4f7f\u7528<\/h2>\n

  Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7a0b\u5e8f\u4e2d\u6307\u5b9a\u6682\u505c\u7684\u65f6\u95f4\uff0c\u5373\u53ef\u5b9e\u73b0\u6682\u505c\u7684\u529f\u80fd\u3002Delay\u51fd\u6570\u7684\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n

  delay(delay_time);<\/code><\/p>\n

  \u5176\u4e2d\uff0cdelay_time\u662f\u6307\u5b9a\u6682\u505c\u7684\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\uff08ms\uff09\u3002\u4f8b\u5982\uff0c\u5f53\u6211\u4eec\u60f3\u8981\u5728\u7a0b\u5e8f\u4e2d\u6682\u505c2\u79d2\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u8bed\u53e5\uff1a<\/p>\n

  delay(2000);<\/code><\/p>\n

  Delay\u51fd\u6570\u7684\u4f18\u70b9<\/h3>\n

  Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u7a0b\u5e8f\u7684\u6682\u505c\u529f\u80fd\uff0c\u800c\u4e14\u6682\u505c\u7684\u65f6\u95f4\u975e\u5e38\u7cbe\u786e\u3002\u6b64\u5916\uff0cDelay\u51fd\u6570\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u7a0b\u5e8f\u5458\u5b9e\u73b0\u4e00\u4e9b\u7279\u5b9a\u7684\u529f\u80fd\uff0c\u4f8b\u5982\u5ef6\u65f6\u89e6\u53d1\u4e8b\u4ef6\u6216\u8005\u5b9e\u73b0\u4e00\u4e9b\u5b9a\u65f6\u4efb\u52a1\u3002<\/p>\n

  Delay\u51fd\u6570\u7684\u7f3a\u70b9<\/h3>\n

  Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u4f46\u662f\u5b83\u4e5f\u5b58\u5728\u4e00\u4e9b\u7f3a\u70b9\u3002\u4f8b\u5982\uff0cDelay\u51fd\u6570\u53ea\u80fd\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u800c\u4e0d\u80fd\u6539\u53d8\u7a0b\u5e8f\u7684\u6267\u884c\u987a\u5e8f\uff0c\u56e0\u6b64\u7a0b\u5e8f\u5458\u65e0\u6cd5\u4f7f\u7528Delay\u51fd\u6570\u6765\u5b9e\u73b0\u591a\u7ebf\u7a0b\u7684\u529f\u80fd\u3002\u6b64\u5916\uff0cDelay\u51fd\u6570\u4e5f\u65e0\u6cd5\u83b7\u53d6\u7cfb\u7edf\u7684\u5b9e\u65f6\u65f6\u95f4\uff0c\u56e0\u6b64\u7a0b\u5e8f\u5458\u65e0\u6cd5\u4f7f\u7528Delay\u51fd\u6570\u6765\u5b9e\u73b0\u5b9e\u65f6\u4efb\u52a1\u529f\u80fd\u3002<\/p>\n

Delay\u51fd\u6570\u7684\u5e94\u7528<\/h2>\n

  Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u5e7f\u6cdb\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u5404\u79cd\u529f\u80fd\uff0c\u4f8b\u5982\uff1a<\/p>\n

  1. \u5b9e\u73b0\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd<\/h3>\n

  Delay\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd\uff0c\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528Delay\u51fd\u6570\u5b9e\u73b0\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u6267\u884c\u4e00\u6b21\u7684\u5b9a\u65f6\u4efb\u52a1\uff0c\u4ece\u800c\u5b9e\u73b0\u5b9a\u65f6\u89e6\u53d1\u4e8b\u4ef6\u7684\u529f\u80fd\u3002<\/p>\n

  2. \u5b9e\u73b0\u5ef6\u65f6\u89e6\u53d1\u4e8b\u4ef6\u529f\u80fd<\/h3>\n

  Delay\u51fd\u6570\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u5ef6\u65f6\u89e6\u53d1\u4e8b\u4ef6\u7684\u529f\u80fd\uff0c\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528Delay\u51fd\u6570\u5b9e\u73b0\u67d0\u4e00\u6bb5\u65f6\u95f4\u540e\u89e6\u53d1\u67d0\u4e00\u4e8b\u4ef6\u7684\u529f\u80fd\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Delay\u51fd\u6570\u662f\u4e00\u79cdCVI\u4e2d\u7684\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7a0b\u5e8f\u5458\u5728\u67d0\u4e00\u6bb5\u65f6\u95f4\u5185\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u7279\u5b9a\u7684\u529f\u80fd\u3002<\/strong>Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7a0b\u5e8f\u4e2d\u6307\u5b9a\u6682\u505c\u7684\u65f6\u95f4\uff0c\u5373\u53ef\u5b9e\u73b0\u6682\u505c\u7684\u529f\u80fd\u3002Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u5e7f\u6cdb\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd\u548c\u5ef6\u65f6\u89e6\u53d1\u4e8b\u4ef6\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Delay\u51fd\u6570\u662f\u4e00\u79cdCVI\u4e2d\u7684\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7a0b\u5e8f\u5458\u5728\u67d0\u4e00\u6bb5\u65f6\u95f4\u5185\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u7279\u5b9a\u7684\u529f\u80fd\u3002Delay\u51fd\u6570\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-43289","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/43289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=43289"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/43289\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=43289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=43289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=43289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}