{"id":5360,"date":"2023-01-05T12:31:27","date_gmt":"2023-01-05T04:31:27","guid":{"rendered":"https:\/\/badgameshow.com\/steven\/?p=5360"},"modified":"2023-01-05T12:31:27","modified_gmt":"2023-01-05T04:31:27","slug":"%e4%ba%86%e8%a7%a3typescript%e4%b8%ad%e5%ad%97%e4%b8%b2%e7%9a%84%e6%b1%82%e6%98%af%e5%90%a6%e7%82%ba%e9%9b%99%e5%80%8d%e7%b6%93%e9%a9%97%e5%ad%97%e7%ac%a6%e4%b8%b2isdoubleexponentialcase","status":"publish","type":"post","link":"https:\/\/badgameshow.com\/steven\/typescript\/%e4%ba%86%e8%a7%a3typescript%e4%b8%ad%e5%ad%97%e4%b8%b2%e7%9a%84%e6%b1%82%e6%98%af%e5%90%a6%e7%82%ba%e9%9b%99%e5%80%8d%e7%b6%93%e9%a9%97%e5%ad%97%e7%ac%a6%e4%b8%b2isdoubleexponentialcase\/","title":{"rendered":"\u4e86\u89e3TypeScript\u4e2d\u5b57\u4e32\u7684\u6c42\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32(isDoubleExponentialCase)"},"content":{"rendered":"<p><meta name=\"keywords\" content=\"TypeScript, \u5b57\u4e32, \u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32, isDoubleExponentialCase\"><\/p>\n<h1>TypeScript \u5b57\u4e32\u7684\u6c42\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32(isDoubleExponentialCase)<\/h1>\n<p>TypeScript \u662f\u4e00\u7a2e JavaScript \u7684\u8d85\u96c6\uff0c\u5b83\u64c1\u6709\u66f4\u591a\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u958b\u767c\u51fa\u66f4\u512a\u8cea\u7684\u7a0b\u5f0f\u78bc\u3002\u5176\u4e2d\u4e00\u500b\u529f\u80fd\u5c31\u662f\u53ef\u4ee5\u6aa2\u67e5\u5b57\u4e32\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32\uff0c\u9019\u500b\u529f\u80fd\u53ef\u4ee5\u7528 TypeScript \u7684 isDoubleExponentialCase() \u51fd\u5f0f\u4f86\u5b8c\u6210\u3002<\/p>\n<p>isDoubleExponentialCase() \u51fd\u5f0f\u53ef\u4ee5\u6aa2\u67e5\u4e00\u500b\u5b57\u4e32\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32\uff0c\u5b83\u6703\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u5169\u500b\u76f8\u540c\u7684\u5b57\u5143\uff0c\u5982\u679c\u6709\u7684\u8a71\uff0c\u5c31\u6703\u56de\u50b3 true\uff0c\u5426\u5247\u5c31\u6703\u56de\u50b3 false\u3002<\/p>\n<p>\u8209\u500b\u4f8b\u5b50\uff0c\u5047\u8a2d\u6211\u5011\u6709\u4e00\u500b\u5b57\u4e32 &#8220;abcd&#8221;\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528 isDoubleExponentialCase() \u51fd\u5f0f\u4f86\u6aa2\u67e5\u5b83\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32\uff1a<\/p>\n<pre class=\"brush: typescript\">\nlet str = \"abcd\";\nlet result = isDoubleExponentialCase(str);\nconsole.log(result); \/\/ false\n<\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u56e0\u70ba\u5b57\u4e32 &#8220;abcd&#8221; \u4e2d\u6c92\u6709\u5169\u500b\u76f8\u540c\u7684\u5b57\u5143\uff0c\u6240\u4ee5 isDoubleExponentialCase() \u51fd\u5f0f\u6703\u56de\u50b3 false\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5047\u8a2d\u6211\u5011\u6709\u4e00\u500b\u5b57\u4e32 &#8220;aabb&#8221;\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528 isDoubleExponentialCase() \u51fd\u5f0f\u4f86\u6aa2\u67e5\u5b83\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32\uff1a<\/p>\n<pre class=\"brush: typescript\">\nlet str = \"aabb\";\nlet result = isDoubleExponentialCase(str);\nconsole.log(result); \/\/ true\n<\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u56e0\u70ba\u5b57\u4e32 &#8220;aabb&#8221; \u4e2d\u6709\u5169\u500b\u76f8\u540c\u7684\u5b57\u5143\uff0c\u6240\u4ee5 isDoubleExponentialCase() \u51fd\u5f0f\u6703\u56de\u50b3 true\u3002<\/p>\n<p>\u7e3d\u7d50\u4f86\u8aaa\uff0cTypeScript \u7684 isDoubleExponentialCase() \u51fd\u5f0f\u53ef\u4ee5\u7528\u4f86\u6aa2\u67e5\u4e00\u500b\u5b57\u4e32\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32\uff0c\u5b83\u6703\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u5169\u500b\u76f8\u540c\u7684\u5b57\u5143\uff0c\u5982\u679c\u6709\u7684\u8a71\uff0c\u5c31\u6703\u56de\u50b3 true\uff0c\u5426\u5247\u5c31\u6703\u56de\u50b3 false\u3002<\/p>\n<p><!--more--><\/p>\n<h2>TypeScript \u5b57\u4e32\u7684\u6c42\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32(isDoubleExponentialCase)\u7684\u512a\u9ede<\/h2>\n<p>TypeScript \u7684 isDoubleExponentialCase() \u51fd\u5f0f\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u6aa2\u67e5\u5b57\u4e32\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32\uff0c\u9019\u6a23\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u958b\u767c\u51fa\u66f4\u512a\u8cea\u7684\u7a0b\u5f0f\u78bc\u3002<\/p>\n<p>\u53e6\u5916\uff0cTypeScript \u7684 isDoubleExponentialCase() \u51fd\u5f0f\u4e5f\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u5169\u500b\u76f8\u540c\u7684\u5b57\u5143\uff0c\u9019\u6a23\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u91cd\u8907\u7684\u5b57\u5143\uff0c\u4ee5\u53ca\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u7279\u5b9a\u7684\u5b57\u5143\u3002<\/p>\n<h2>TypeScript \u5b57\u4e32\u7684\u6c42\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32(isDoubleExponentialCase)\u7684\u7f3a\u9ede<\/h2>\n<p>TypeScript \u7684 isDoubleExponentialCase() \u51fd\u5f0f\u53ea\u80fd\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u5169\u500b\u76f8\u540c\u7684\u5b57\u5143\uff0c\u5b83\u4e0d\u80fd\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u4e09\u500b\u6216\u4ee5\u4e0a\u7684\u76f8\u540c\u5b57\u5143\uff0c\u6240\u4ee5\u958b\u767c\u8005\u9084\u662f\u9700\u8981\u81ea\u5df1\u5beb\u51fd\u5f0f\u4f86\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u4e09\u500b\u6216\u4ee5\u4e0a\u7684\u76f8\u540c\u5b57\u5143\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6458\u8981(Description):TypeScript\u4e2d\u7684isDoubleExponentialCase\u51fd\u6578\u53ef\u4ee5\u7528\u4f86\u6aa2\u67e5\u5b57\u4e32\u662f\u5426\u70ba\u96d9\u500d\u7d93\u9a57\u5b57\u7b26\u4e32\uff0c\u5b83\u53ef\u4ee5\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u91cd\u8907\u7684\u5b57\u5143\uff0c\u4e26\u4e14\u53ef\u4ee5\u6aa2\u67e5\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u91cd\u8907\u7684\u5b57\u5143\uff0c\u4ee5\u53ca\u5b57\u4e32\u4e2d\u662f\u5426\u6709\u91cd\u8907\u7684\u5b57\u5143\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[187],"tags":[186],"class_list":["post-5360","post","type-post","status-publish","format-standard","hentry","category-typescript","tag-typescript"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pcFK27-1os","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/comments?post=5360"}],"version-history":[{"count":1,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5360\/revisions"}],"predecessor-version":[{"id":5361,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5360\/revisions\/5361"}],"wp:attachment":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/media?parent=5360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/categories?post=5360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/tags?post=5360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}