{"id":60442,"date":"2026-01-15T15:41:56","date_gmt":"2026-01-15T07:41:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/60442.html"},"modified":"2026-01-15T15:41:56","modified_gmt":"2026-01-15T07:41:56","slug":"%e8%ae%b0%e5%bd%95%e8%87%aa%e5%b7%b1%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%b0%86react-%e7%bc%96%e5%86%99%e7%9a%84%e5%89%8d%e7%ab%af%e9%83%a8%e7%bd%b2%e5%88%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8c%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/60442.html","title":{"rendered":"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee"},"content":{"rendered":"<h2>0.\u00a0 \u672c\u5730\u9879\u76ee\u6dfb\u52a0\u914d\u7f6e<\/h2>\n<li>\u5728\u672c\u5730 VS Code\u00a0\u6253\u5f00\u9879\u76ee\u3002<\/li>\n<li>\u6253\u5f00\u6839\u76ee\u5f55\u4e0b\u7684\u00a0vite.config.js\u00a0\u6587\u4ef6\u3002<\/li>\n<li>\u5728\u00a0plugins\u00a0\u540c\u7ea7\u7684\u4f4d\u7f6e&#xff0c;\u6dfb\u52a0\u4e00\u884c\u00a0base\u00a0\u914d\u7f6e&#xff1a; import { defineConfig } from &#039;vite&#039;<br \/>\nimport react from &#039;&#064;vitejs\/plugin-react&#039;<\/p>\n<p>\/\/ https:\/\/vitejs.dev\/config\/<br \/>\nexport default defineConfig({<br \/>\n  plugins: [react()],<br \/>\n  base: &#039;\/delayed-coking-demo\/&#039;, \/\/ &lt;&#8212; \u52a0\u4e0a\u8fd9\u4e00\u884c&#xff0c;\u6ce8\u610f\u524d\u540e\u90fd\u6709\u659c\u6760<br \/>\n}) <\/li>\n<\/p>\n<h2>1.\u00a0\u5728\u4f60\u7684\u5f00\u53d1\u7535\u8111&#xff08;\u672c\u5730&#xff09;VS Code \u7ec8\u7aef\u8fd0\u884c&#xff0c;\u786e\u4fdd\u6839\u76ee\u5f55\u4e0b\u751f\u6210\u4e86dist\u00a0\u6587\u4ef6\u5939\u3002<\/h2>\n<p>npm run build <\/p>\n<h2>2.\u00a0\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5 Nginx<\/h2>\n<p>\u5728\u8fdc\u7a0b\u684c\u9762\u7684\u90a3\u4e2a Windows \u91cc\u64cd\u4f5c&#xff08;\u5c31\u50cf\u64cd\u4f5c\u4f60\u81ea\u5df1\u7684\u7535\u8111\u4e00\u6837&#xff09;&#xff1a;<\/p>\n<li>\u4e0b\u8f7d Nginx&#xff1a;\n<ul>\n<li>\u6253\u5f00\u670d\u52a1\u5668\u91cc\u7684 Edge \u6d4f\u89c8\u5668&#xff08;\u6216\u8005\u4f60\u5728\u672c\u5730\u4e0b\u8f7d\u597d&#xff0c;\u590d\u5236\u7c98\u8d34\u8fdb\u53bb&#xff09;\u3002<\/li>\n<li>\u8bbf\u95ee&#xff1a;http:\/\/nginx.org\/en\/download.html<\/li>\n<li>\u4e0b\u8f7d\u00a0Stable version\u00a0\u4e0b\u9762\u7684\u00a0nginx\/Windows-1.xx.x\u00a0(zip\u683c\u5f0f)\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u89e3\u538b&#xff1a;\n<ul>\n<li>\u5c06\u4e0b\u8f7d\u7684\u538b\u7f29\u5305\u89e3\u538b\u5230 C \u76d8\u6839\u76ee\u5f55&#xff0c;\u4f8b\u5982&#xff1a;C:\\\\nginx\u3002<\/li>\n<li>\u6253\u5f00\u8fd9\u4e2a\u6587\u4ef6\u5939&#xff0c;\u4f60\u4f1a\u770b\u5230\u00a0nginx.exe\u00a0\u548c\u00a0conf,\u00a0html\u00a0\u7b49\u6587\u4ef6\u5939\u3002<\/li>\n<\/ul>\n<\/li>\n<h2>3 .\u00a0\u4e0a\u4f20\u4f60\u7684\u9879\u76ee\u4ee3\u7801<\/h2>\n<li>\u56de\u5230\u8fdc\u7a0b\u684c\u9762&#xff08;\u670d\u52a1\u5668&#xff09;\u3002<\/li>\n<li>\u8fdb\u5165\u00a0C:\\\\nginx-1.28.1\\\\html\u00a0\u6587\u4ef6\u5939\u3002<\/li>\n<li>\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939&#xff0c;\u547d\u540d\u4e3a\u00a0delayed-coking-demo\u3002<\/li>\n<li>\u628a\u4f60\u521a\u521a\u91cd\u65b0\u6253\u5305\u751f\u6210\u7684\u672c\u5730\u00a0dist\u00a0\u6587\u4ef6\u5939\u91cc\u9762\u7684\u6240\u6709\u5185\u5bb9&#xff08;index.html, assets \u7b49&#xff09;&#xff0c;\u590d\u5236\u7c98\u8d34\u5230\u670d\u52a1\u5668\u7684\u8fd9\u4e2a\u65b0\u6587\u4ef6\u5939\u91cc\u3002<\/li>\n<h2>4.\u00a0\u4fee\u6539 Nginx \u914d\u7f6e (\u89e3\u51b3\u8def\u7531\u5237\u65b0 404)<\/h2>\n<p>worker_processes  1;<\/p>\n<p>events {<br \/>\n    worker_connections  1024;<br \/>\n}<\/p>\n<p>http {<br \/>\n    include       mime.types;<br \/>\n    default_type  application\/octet-stream;<br \/>\n    sendfile        on;<br \/>\n    keepalive_timeout  65;<\/p>\n<p>    # &#8212; \u8fd9\u91cc\u5f00\u59cb\u662f Server \u914d\u7f6e &#8212;<br \/>\n    server {<br \/>\n        listen       80;<br \/>\n        server_name  localhost;<\/p>\n<p>        # 1. \u9ed8\u8ba4\u6839\u76ee\u5f55 (\u8bbf\u95ee http:\/\/ip \u65f6\u663e\u793a\u7684\u5185\u5bb9)<br \/>\n        # \u53ea\u8981 html \u6587\u4ef6\u5939\u91cc\u6709 index.html&#xff0c;\u8fd9\u91cc\u5c31\u4f1a\u663e\u793a<br \/>\n        location \/ {<br \/>\n            root   html;<br \/>\n            index  index.html index.htm;<br \/>\n        }<\/p>\n<p>        # 2. \u4f60\u7684\u65b0\u9879\u76ee (\u8bbf\u95ee http:\/\/ip\/delayed-coking-demo \u65f6\u663e\u793a)<br \/>\n        # \u8bf7\u786e\u4fdd\u4f60\u5df2\u7ecf\u5728 html \u6587\u4ef6\u5939\u91cc\u65b0\u5efa\u4e86 delayed-coking-demo \u6587\u4ef6\u5939<br \/>\n        # \u5e76\u628a build \u597d\u7684\u4ee3\u7801\u653e\u8fdb\u53bb\u4e86<br \/>\n        location \/delayed-coking-demo {<br \/>\n            root   html;<br \/>\n            index  index.html;<\/p>\n<p>            # \u8fd9\u91cc\u7684\u8def\u5f84\u5fc5\u987b\u548c\u4f60\u7684 base \u4fdd\u6301\u4e00\u81f4<br \/>\n            try_files $uri $uri\/ \/delayed-coking-demo\/index.html;<br \/>\n        }<\/p>\n<p>        error_page   500 502 503 504  \/50x.html;<br \/>\n        location &#061; \/50x.html {<br \/>\n            root   html;<br \/>\n        }<br \/>\n    }<br \/>\n    # &#8212; Server \u914d\u7f6e\u7ed3\u675f &#8212;<br \/>\n} <\/p>\n<h2>5 .\u00a0\u542f\u52a8 Nginx<\/h2>\n<li>\u5728\u670d\u52a1\u5668\u6587\u4ef6\u5939\u91cc&#xff0c;\u53cc\u51fb\u00a0nginx.exe\u3002\n<ul>\n<li>\u6ce8\u610f&#xff1a;\u53cc\u51fb\u540e\u5c4f\u5e55\u4f1a\u95ea\u4e00\u4e0b\u9ed1\u6846\u7136\u540e\u6d88\u5931&#xff0c;\u8fd9\u662f\u6b63\u5e38\u7684&#xff01;\u5b83\u5df2\u7ecf\u5728\u540e\u53f0\u8fd0\u884c\u4e86\u3002<\/li>\n<li>\u5982\u679c\u6709\u9632\u706b\u5899\u5f39\u7a97&#xff0c;\u8bf7\u70b9\u51fb\u201c\u5141\u8bb8\u8bbf\u95ee\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u9a8c\u8bc1\u662f\u5426\u8fd0\u884c&#xff1a;\u6253\u5f00\u670d\u52a1\u5668\u91cc\u7684 Edge \u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee\u00a0http:\/\/localhost\u3002\u5982\u679c\u80fd\u770b\u5230\u4f60\u7684\u5ef6\u8fdf\u7126\u5316\u7cfb\u7edf&#xff0c;\u8bf4\u660e\u670d\u52a1\u5668\u5185\u90e8\u90e8\u7f72\u6210\u529f\u4e86<\/li>\n<h2>6 .\u00a0\u6700\u5173\u952e\u7684\u4e00\u6b65 \u2014\u2014 \u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u914d\u7f6e<\/h2>\n<p>\u8fd9\u662f\u65b0\u624b\u6700\u5bb9\u6613\u5361\u4f4f\u7684\u5730\u65b9\u3002\u5373\u4f7f\u670d\u52a1\u5668\u91cc\u914d\u7f6e\u597d\u4e86&#xff0c;\u963f\u91cc\u4e91\u7684\u5916\u90e8\u9632\u706b\u5899\u5982\u679c\u4e0d\u653e\u884c&#xff0c;\u5916\u7f51\u8fd8\u662f\u8fdb\u4e0d\u53bb\u3002<\/p>\n<li>\u56de\u5230\u4f60\u7684\u963f\u91cc\u4e91\u7f51\u9875\u63a7\u5236\u53f0&#xff08;\u5c31\u662f\u4f60\u622a\u56fe\u7684\u90a3\u4e2a\u9875\u9762&#xff09;\u3002<\/li>\n<li>\u70b9\u51fb\u9875\u9762\u4e2d\u95f4\u7684\u9009\u9879\u5361\u00a0\u201c\u7f51\u7edc\u4e0e\u5b89\u5168\u7ec4\u201d\u3002<\/li>\n<li>\u627e\u5230\u00a0\u201c\u5b89\u5168\u7ec4\u914d\u7f6e\u201d\u00a0\u6216\u00a0\u201c\u914d\u7f6e\u89c4\u5219\u201d\u00a0\u94fe\u63a5\u70b9\u51fb\u8fdb\u5165\u3002<\/li>\n<li>\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u00a0\u201c\u6dfb\u52a0\u5b89\u5168\u7ec4\u89c4\u5219\u201d&#xff08;\u6216\u624b\u52a8\u6dfb\u52a0&#xff09;&#xff1a;\n<ul>\n<li>\u7aef\u53e3\u8303\u56f4&#xff1a;\u8f93\u5165\u00a080\/80\u00a0(\u6216\u8005\u662f HTTP 80)\u3002<\/li>\n<li>\u6388\u6743\u5bf9\u8c61\u00a0(\u6e90 IP)&#xff1a;\u8f93\u5165\u00a00.0.0.0\/0\u00a0(\u8868\u793a\u5141\u8bb8\u5168\u4e16\u754c\u8bbf\u95ee)\u3002<\/li>\n<li>\u534f\u8bae\u7c7b\u578b&#xff1a;TCP\u3002<\/li>\n<li>\u7b56\u7565&#xff1a;\u5141\u8bb8\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4fdd\u5b58\u89c4\u5219\u3002<\/li>\n<h2>7.\u00a0\u00a0\u5916\u7f51&#xff0c; \u8f93\u5165 http:\/\/\u516c\u7f51ip\/delayed-coking-demo\u00a0&#xff0c;\u5c31\u53ef\u4ee5\u8bbf\u95ee\u5230\u9879\u76ee\u4e86<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>0.\u00a0 \u672c\u5730\u9879\u76ee\u6dfb\u52a0\u914d\u7f6e<br \/>\n\u5728\u672c\u5730 VS Code\u00a0\u6253\u5f00\u9879\u76ee\u3002\u6253\u5f00\u6839\u76ee\u5f55\u4e0b\u7684\u00a0vite.config.js\u00a0\u6587\u4ef6\u3002\u5728\u00a0plugins\u00a0\u540c\u7ea7\u7684\u4f4d\u7f6e&#xff0c;\u6dfb\u52a0\u4e00\u884c\u00a0base\u00a0\u914d\u7f6e&#xff1a; import { defineConfig } from vite<br \/>\nimport react from vitejs\/plugin-react\/\/ https:\/\/vitejs.dev\/config\/<br \/>\nexport default defineConfig({plugins: <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[524,87,43],"topic":[],"class_list":["post-60442","post","type-post","status-publish","format-standard","hentry","category-server","tag-react-js","tag-87","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/60442.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"0.\u00a0 \u672c\u5730\u9879\u76ee\u6dfb\u52a0\u914d\u7f6e \u5728\u672c\u5730 VS Code\u00a0\u6253\u5f00\u9879\u76ee\u3002\u6253\u5f00\u6839\u76ee\u5f55\u4e0b\u7684\u00a0vite.config.js\u00a0\u6587\u4ef6\u3002\u5728\u00a0plugins\u00a0\u540c\u7ea7\u7684\u4f4d\u7f6e&#xff0c;\u6dfb\u52a0\u4e00\u884c\u00a0base\u00a0\u914d\u7f6e&#xff1a; import { defineConfig } from vite import react from vitejs\/plugin-react\/\/ https:\/\/vitejs.dev\/config\/ export default defineConfig({plugins:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/60442.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-15T07:41:56+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60442.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/60442.html\",\"name\":\"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-15T07:41:56+00:00\",\"dateModified\":\"2026-01-15T07:41:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/60442.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/60442.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60442.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/60442.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"0.\u00a0 \u672c\u5730\u9879\u76ee\u6dfb\u52a0\u914d\u7f6e \u5728\u672c\u5730 VS Code\u00a0\u6253\u5f00\u9879\u76ee\u3002\u6253\u5f00\u6839\u76ee\u5f55\u4e0b\u7684\u00a0vite.config.js\u00a0\u6587\u4ef6\u3002\u5728\u00a0plugins\u00a0\u540c\u7ea7\u7684\u4f4d\u7f6e&#xff0c;\u6dfb\u52a0\u4e00\u884c\u00a0base\u00a0\u914d\u7f6e&#xff1a; import { defineConfig } from vite import react from vitejs\/plugin-react\/\/ https:\/\/vitejs.dev\/config\/ export default defineConfig({plugins:","og_url":"https:\/\/www.wsisp.com\/helps\/60442.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-15T07:41:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/60442.html","url":"https:\/\/www.wsisp.com\/helps\/60442.html","name":"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-15T07:41:56+00:00","dateModified":"2026-01-15T07:41:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/60442.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/60442.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/60442.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8bb0\u5f55\u81ea\u5df1\u7b2c\u4e00\u6b21\u5c06React \u7f16\u5199\u7684\u524d\u7aef\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=60442"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60442\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=60442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=60442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=60442"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=60442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}