{"id":5595,"date":"2023-01-06T09:53:17","date_gmt":"2023-01-06T01:53:17","guid":{"rendered":"https:\/\/badgameshow.com\/steven\/?p=5595"},"modified":"2023-01-06T09:53:17","modified_gmt":"2023-01-06T01:53:17","slug":"%e5%ad%b8%e7%bf%92%e5%a6%82%e4%bd%95%e5%88%a9%e7%94%a8react-js%e5%b0%8d%e5%ad%97%e4%b8%b2%e9%80%b2%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%af%ab%e8%bd%89%e6%8f%9b-2","status":"publish","type":"post","link":"https:\/\/badgameshow.com\/steven\/react-js\/%e5%ad%b8%e7%bf%92%e5%a6%82%e4%bd%95%e5%88%a9%e7%94%a8react-js%e5%b0%8d%e5%ad%97%e4%b8%b2%e9%80%b2%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%af%ab%e8%bd%89%e6%8f%9b-2\/","title":{"rendered":"\u5b78\u7fd2\u5982\u4f55\u5229\u7528React.JS\u5c0d\u5b57\u4e32\u9032\u884c\u5927\u5c0f\u5beb\u8f49\u63db"},"content":{"rendered":"<p><meta name=\"keywords\" content=\"React.JS, toLowerCase, toUpperCase\"><\/p>\n<h1>\u4f7f\u7528 React.JS \u5b57\u4e32\u7684\u5927\u5c0f\u5199\u8f6c\u6362(toLowerCase, toUpperCase)<\/h1>\n<p>React.JS \u662f\u4e00\u500b\u7528\u65bc\u69cb\u5efa\u7528\u6236\u754c\u9762\u7684 JavaScript \u5eab\uff0c\u5b83\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u8f15\u9b06\u5730\u69cb\u5efa\u9ad8\u6027\u80fd\u7684\u7db2\u9801\u61c9\u7528\u7a0b\u5e8f\u3002React.JS \u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684 API\uff0c\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u5730\u64cd\u4f5c\u5b57\u4e32\uff0c\u5176\u4e2d\u5305\u62ec toLowerCase \u548c toUpperCase \u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c07\u5b57\u4e32\u8f49\u63db\u70ba\u5c0f\u5beb\u6216\u5927\u5beb\u3002<\/p>\n<h2>toLowerCase \u65b9\u6cd5<\/h2>\n<p>toLowerCase \u65b9\u6cd5\u53ef\u4ee5\u5c07\u5b57\u4e32\u8f49\u63db\u70ba\u5c0f\u5beb\uff0c\u5b83\u6703\u5c07\u6240\u6709\u7684\u5b57\u6bcd\u8f49\u63db\u70ba\u5c0f\u5beb\uff0c\u800c\u4e0d\u6703\u6539\u8b8a\u5b57\u4e32\u4e2d\u7684\u5176\u4ed6\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u5011\u6709\u4e00\u500b\u5b57\u4e32 &#8220;React.JS&#8221;\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528 toLowerCase \u65b9\u6cd5\u5c07\u5176\u8f49\u63db\u70ba &#8220;react.js&#8221;\uff1a<\/p>\n<pre class=\"brush: javascript\">\nlet str = \"React.JS\";\nlet lowerStr = str.toLowerCase();\nconsole.log(lowerStr); \/\/ react.js\n<\/pre>\n<h2>toUpperCase \u65b9\u6cd5<\/h2>\n<p>toUpperCase \u65b9\u6cd5\u53ef\u4ee5\u5c07\u5b57\u4e32\u8f49\u63db\u70ba\u5927\u5beb\uff0c\u5b83\u6703\u5c07\u6240\u6709\u7684\u5b57\u6bcd\u8f49\u63db\u70ba\u5927\u5beb\uff0c\u800c\u4e0d\u6703\u6539\u8b8a\u5b57\u4e32\u4e2d\u7684\u5176\u4ed6\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u5011\u6709\u4e00\u500b\u5b57\u4e32 &#8220;React.JS&#8221;\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528 toUpperCase \u65b9\u6cd5\u5c07\u5176\u8f49\u63db\u70ba &#8220;REACT.JS&#8221;\uff1a<\/p>\n<pre class=\"brush: javascript\">\nlet str = \"React.JS\";\nlet upperStr = str.toUpperCase();\nconsole.log(upperStr); \/\/ REACT.JS\n<\/pre>\n<h2>\u7e3d\u7d50<\/h2>\n<p>React.JS \u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684 API\uff0c\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u5730\u64cd\u4f5c\u5b57\u4e32\uff0c\u5176\u4e2d\u5305\u62ec toLowerCase \u548c toUpperCase \u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c07\u5b57\u4e32\u8f49\u63db\u70ba\u5c0f\u5beb\u6216\u5927\u5beb\u3002\u9019\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u66f4\u5bb9\u6613\u5730\u64cd\u4f5c\u5b57\u4e32\uff0c\u4e26\u66f4\u5feb\u5730\u958b\u767c\u51fa\u9ad8\u6027\u80fd\u7684\u61c9\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u66f4\u591a\u8cc7\u6e90<\/h2>\n<p>\u5982\u679c\u60a8\u60f3\u4e86\u89e3\u66f4\u591a\u95dc\u65bc React.JS \u7684\u8cc7\u8a0a\uff0c\u8acb\u53c3\u8003\u4ee5\u4e0b\u8cc7\u6e90\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/reactjs.org\/\" target=\"_blank\" rel=\"noopener\">React.JS \u5b98\u65b9\u7db2\u7ad9<\/a><\/li>\n<li><a href=\"https:\/\/reactjs.org\/docs\/getting-started.html\" target=\"_blank\" rel=\"noopener\">React.JS \u5165\u9580\u6307\u5357<\/a><\/li>\n<li><a href=\"https:\/\/reactjs.org\/docs\/react-api.html\" target=\"_blank\" rel=\"noopener\">React.JS API \u6587\u6a94<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6458\u8981\uff1a\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u4f7f\u7528React.JS\u5c0d\u5b57\u4e32\u9032\u884c\u5927\u5c0f\u5beb\u8f49\u63db\uff0c\u4e26\u8a73\u7d30\u4ecb\u7d39toLowerCase\u548ctoUpperCase\u65b9\u6cd5\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u8b93\u4f60\u53ef\u4ee5\u8f15\u9b06\u5b78\u7fd2React.JS\u7684\u5927\u5c0f\u5beb\u8f49\u63db\u529f\u80fd\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":[184,183],"tags":[182,181],"class_list":["post-5595","post","type-post","status-publish","format-standard","hentry","category-react","category-react-js","tag-react","tag-react-js"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pcFK27-1sf","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5595","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=5595"}],"version-history":[{"count":1,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5595\/revisions"}],"predecessor-version":[{"id":5596,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5595\/revisions\/5596"}],"wp:attachment":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/media?parent=5595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/categories?post=5595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/tags?post=5595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}