{"id":16976,"date":"2025-04-18T23:24:24","date_gmt":"2025-04-18T15:24:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/16976.html"},"modified":"2025-04-18T23:24:24","modified_gmt":"2025-04-18T15:24:24","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-webstorm-%e4%b8%ad%e9%85%8d%e7%bd%ae%e4%b8%80%e4%b8%aa-web-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/16976.html","title":{"rendered":"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668"},"content":{"rendered":"<p>1. \u4f7f\u7528 WebStorm \u7684\u5185\u7f6e\u529f\u80fd<\/p>\n<p>WebStorm \u63d0\u4f9b\u4e86\u5185\u7f6e\u7684 HTTP \u670d\u52a1\u5668\u529f\u80fd&#xff0c;\u53ef\u4ee5\u5feb\u901f\u9884\u89c8\u9879\u76ee\u7684\u9759\u6001\u6587\u4ef6&#xff08;HTML\u3001CSS\u3001JS \u7b49&#xff09;\u3002<\/p>\n<h5>\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\u6253\u5f00 WebStorm&#xff0c;\u52a0\u8f7d\u4f60\u7684\u9879\u76ee\u3002<\/li>\n<li>\u5728 Project Tool Window \u4e2d\u627e\u5230 HTML \u6587\u4ef6\u3002<\/li>\n<li>\u53f3\u952e\u70b9\u51fb\u6587\u4ef6\u5e76\u9009\u62e9 Open in Browser&#xff1a;\n<ul>\n<li>WebStorm \u4f1a\u542f\u52a8\u4e00\u4e2a\u5185\u7f6e\u7684 HTTP \u670d\u52a1\u5668\u5e76\u5728\u9ed8\u8ba4\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u8be5\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5728\u5730\u5740\u680f\u4e2d&#xff0c;\u4f60\u53ef\u4ee5\u770b\u5230\u7c7b\u4f3c http:\/\/localhost:63342\/project-name\/index.html \u7684 URL&#xff0c;\u8fd9\u662f WebStorm \u81ea\u52a8\u914d\u7f6e\u7684\u672c\u5730\u670d\u52a1\u5668\u5730\u5740\u3002<\/li>\n<h5>\u4f18\u70b9&#xff1a;<\/h5>\n<ul>\n<li>\u5feb\u901f\u8bbe\u7f6e&#xff0c;\u65e0\u9700\u989d\u5916\u5de5\u5177\u3002<\/li>\n<li>\u652f\u6301\u6240\u6709\u9759\u6001\u6587\u4ef6\u7684\u9884\u89c8\u3002<\/li>\n<li>\u81ea\u52a8\u53cd\u6620\u9879\u76ee\u6587\u4ef6\u7684\u6700\u65b0\u66f4\u6539\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>2. \u914d\u7f6e\u5916\u90e8 Node.js \u670d\u52a1\u5668<\/h4>\n<p>\u5982\u679c\u9700\u8981\u52a8\u6001\u5185\u5bb9\u6216\u66f4\u590d\u6742\u7684\u670d\u52a1\u5668\u903b\u8f91&#xff0c;\u53ef\u4ee5\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Node.js Web \u670d\u52a1\u5668\u3002<\/p>\n<h5>\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\n<p>\u5b89\u88c5 Node.js&#xff1a;<\/p>\n<ul>\n<li>\u786e\u4fdd\u7cfb\u7edf\u5df2\u5b89\u88c5 Node.js&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1&#xff1a; node -v<br \/>\nnpm -v\n <\/li>\n<li>\u5982\u679c\u672a\u5b89\u88c5&#xff0c;\u524d\u5f80 Node.js \u5b98\u65b9\u7f51\u7ad9 \u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u521b\u5efa\u670d\u52a1\u5668\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u5728\u9879\u76ee\u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6 server.js&#xff0c;\u5185\u5bb9\u5982\u4e0b&#xff1a; const http &#061; require(&#039;http&#039;);<br \/>\nconst fs &#061; require(&#039;fs&#039;);<br \/>\nconst path &#061; require(&#039;path&#039;);<\/p>\n<p>const server &#061; http.createServer((req, res) &#061;&gt; {<br \/>\n    let filePath &#061; &#039;.&#039; &#043; req.url;<br \/>\n    if (filePath &#061;&#061;&#061; &#039;.\/&#039;) {<br \/>\n        filePath &#061; &#039;.\/index.html&#039;;<br \/>\n    }<\/p>\n<p>    const extname &#061; String(path.extname(filePath)).toLowerCase();<br \/>\n    const mimeTypes &#061; {<br \/>\n        &#039;.html&#039;: &#039;text\/html&#039;,<br \/>\n        &#039;.js&#039;: &#039;text\/javascript&#039;,<br \/>\n        &#039;.css&#039;: &#039;text\/css&#039;,<br \/>\n        &#039;.json&#039;: &#039;application\/json&#039;,<br \/>\n        &#039;.png&#039;: &#039;image\/png&#039;,<br \/>\n        &#039;.jpg&#039;: &#039;image\/jpg&#039;,<br \/>\n        &#039;.gif&#039;: &#039;image\/gif&#039;,<br \/>\n        &#039;.svg&#039;: &#039;image\/svg&#043;xml&#039;,<br \/>\n    };<\/p>\n<p>    const contentType &#061; mimeTypes[extname] || &#039;application\/octet-stream&#039;;<\/p>\n<p>    fs.readFile(filePath, (error, content) &#061;&gt; {<br \/>\n        if (error) {<br \/>\n            if (error.code &#061;&#061;&#061; &#039;ENOENT&#039;) {<br \/>\n                res.writeHead(404, { &#039;Content-Type&#039;: &#039;text\/html&#039; });<br \/>\n                res.end(&#039;&lt;h1&gt;404 Not Found&lt;\/h1&gt;&#039;, &#039;utf-8&#039;);<br \/>\n            } else {<br \/>\n                res.writeHead(500);<br \/>\n                res.end(&#096;Server Error: ${error.code}&#096;, &#039;utf-8&#039;);<br \/>\n            }<br \/>\n        } else {<br \/>\n            res.writeHead(200, { &#039;Content-Type&#039;: contentType });<br \/>\n            res.end(content, &#039;utf-8&#039;);<br \/>\n        }<br \/>\n    });<br \/>\n});<\/p>\n<p>const PORT &#061; 8080;<br \/>\nserver.listen(PORT, () &#061;&gt; {<br \/>\n    console.log(&#096;Server running at http:\/\/localhost:${PORT}\/&#096;);<br \/>\n});\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8fd0\u884c\u670d\u52a1\u5668&#xff1a;<\/p>\n<ul>\n<li>\u6253\u5f00 WebStorm \u7684 Terminal&#xff08;\u5feb\u6377\u952e&#xff1a;Alt &#043; F12 \u6216 Ctrl &#043; ~&#xff09;\u3002<\/li>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u670d\u52a1\u5668&#xff1a; node server.js\n <\/li>\n<li>\u8bbf\u95ee http:\/\/localhost:8080 \u67e5\u770b\u4f60\u7684 Web \u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8c03\u8bd5\u670d\u52a1\u5668&#xff1a;<\/p>\n<ul>\n<li>\u5728 WebStorm \u4e2d\u8bbe\u7f6e\u4e00\u4e2a Run\/Debug Configuration&#xff1a;\n<ul>\n<li>\u9009\u62e9 Add Configuration (&#043;) &gt; Node.js\u3002<\/li>\n<li>\u8bbe\u7f6e\u5165\u53e3\u6587\u4ef6\u4e3a server.js\u3002<\/li>\n<li>\u70b9\u51fb Run \u6309\u94ae\u542f\u52a8\u670d\u52a1\u5668&#xff0c;\u5e76\u5728 WebStorm \u5185\u8c03\u8bd5\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h4>3. \u914d\u7f6e Python \u7684 HTTP \u670d\u52a1\u5668&#xff08;\u7b80\u5355\u9759\u6001\u670d\u52a1\u5668&#xff09;<\/h4>\n<p>\u5982\u679c\u4e0d\u9700\u8981\u590d\u6742\u903b\u8f91&#xff0c;\u53ef\u4ee5\u4f7f\u7528 Python \u7684\u5185\u7f6e HTTP \u670d\u52a1\u5668\u3002<\/p>\n<h5>\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\u6253\u5f00 WebStorm \u7684\u7ec8\u7aef\u3002<\/li>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u670d\u52a1\u5668&#xff08;\u9700\u8981 Python 3&#xff09;&#xff1a; python3 -m http.server 8000\n <\/li>\n<li>\u8bbf\u95ee http:\/\/localhost:8000 \u67e5\u770b\u9879\u76ee\u7684\u9759\u6001\u6587\u4ef6\u3002<\/li>\n<hr \/>\n<h4>4. \u4f7f\u7528\u5176\u4ed6 Web \u670d\u52a1\u5668&#xff08;\u5982 Apache \u6216 Nginx&#xff09;<\/h4>\n<p>\u5982\u679c\u4f60\u7684\u9879\u76ee\u9700\u8981\u4e0e\u66f4\u590d\u6742\u7684 Web \u670d\u52a1\u5668\u96c6\u6210&#xff0c;\u53ef\u4ee5\u4f7f\u7528 Apache \u6216 Nginx\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Nginx \u914d\u7f6e\u793a\u4f8b&#xff1a;<\/p>\n<h5>\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\n<p>\u5b89\u88c5 Nginx&#xff1a;<\/p>\n<ul>\n<li>\u5728 macOS \u4e0a&#xff0c;\u53ef\u4ee5\u4f7f\u7528 Homebrew \u5b89\u88c5&#xff1a; brew install nginx\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7f16\u8f91 Nginx \u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u6253\u5f00 Nginx \u914d\u7f6e\u6587\u4ef6&#xff08;\u901a\u5e38\u4f4d\u4e8e \/usr\/local\/etc\/nginx\/nginx.conf&#xff09;\u3002<\/li>\n<li>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a; server {<br \/>\n    listen 8080;<br \/>\n    server_name localhost;<\/p>\n<p>    location \/ {<br \/>\n        root \/path\/to\/your\/webstorm\/project;<br \/>\n        index index.html;<br \/>\n    }<br \/>\n}\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u542f\u52a8 Nginx&#xff1a;<\/p>\n<p> nginx\n <\/li>\n<li>\n<p>\u8bbf\u95ee http:\/\/localhost:8080 \u67e5\u770b\u9875\u9762\u3002<\/p>\n<\/li>\n<hr \/>\n<h4>5. \u603b\u7ed3\u4e0e\u5efa\u8bae<\/h4>\n<table>\n<tr>\u65b9\u6cd5\u9002\u7528\u573a\u666f\u4f18\u70b9\u7f3a\u70b9<\/tr>\n<tbody>\n<tr>\n<td>\u5185\u7f6e HTTP \u670d\u52a1\u5668<\/td>\n<td>\u9759\u6001\u6587\u4ef6\u9884\u89c8<\/td>\n<td>\u5feb\u901f\u7b80\u5355&#xff0c;\u65e0\u9700\u989d\u5916\u914d\u7f6e<\/td>\n<td>\u4e0d\u652f\u6301\u52a8\u6001\u5185\u5bb9\u6216\u81ea\u5b9a\u4e49\u903b\u8f91<\/td>\n<\/tr>\n<tr>\n<td>Node.js Web \u670d\u52a1\u5668<\/td>\n<td>\u52a8\u6001\u5185\u5bb9\u3001\u590d\u6742\u903b\u8f91<\/td>\n<td>\u53ef\u9ad8\u5ea6\u81ea\u5b9a\u4e49&#xff0c;\u652f\u6301 JavaScript \u96c6\u6210<\/td>\n<td>\u9700\u8981\u7f16\u5199\u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>Python HTTP \u670d\u52a1\u5668<\/td>\n<td>\u9759\u6001\u6587\u4ef6\u9884\u89c8<\/td>\n<td>\u5feb\u901f\u7b80\u5355&#xff0c;\u9002\u5408\u5feb\u901f\u6d4b\u8bd5<\/td>\n<td>\u4ec5\u9002\u7528\u4e8e\u9759\u6001\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>Nginx\/Apache<\/td>\n<td>\u751f\u4ea7\u73af\u5883\u6216\u590d\u6742\u914d\u7f6e\u9700\u6c42<\/td>\n<td>\u9ad8\u6027\u80fd&#xff0c;\u751f\u4ea7\u7ea7\u529f\u80fd\u4e30\u5bcc<\/td>\n<td>\u914d\u7f6e\u8f83\u590d\u6742&#xff0c;\u9700\u8981\u72ec\u7acb\u5b89\u88c5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u53c2\u8003\u6587\u6863<\/h4>\n<ul>\n<li>JetBrains \u5b98\u65b9\u6587\u6863 &#8211; \u5f00\u542f\u5185\u7f6e Web \u670d\u52a1\u5668<\/li>\n<li>Node.js \u5b98\u65b9\u6587\u6863<\/li>\n<li>Nginx \u5b98\u65b9\u6587\u6863<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u5982\u679c\u4f60\u7684\u9879\u76ee\u9700\u8981\u4e0e\u66f4\u590d\u6742\u7684 Web \u670d\u52a1\u5668\u96c6\u6210\uff0c\u53ef\u4ee5\u4f7f\u7528 Apache \u6216 Nginx\u3002WebStorm \u63d0\u4f9b\u4e86\u5185\u7f6e\u7684 HTTP \u670d\u52a1\u5668\u529f\u80fd\uff0c\u53ef\u4ee5\u5feb\u901f\u9884\u89c8\u9879\u76ee\u7684\u9759\u6001\u6587\u4ef6\uff08HTML\u3001CSS\u3001JS \u7b49\uff09\u3002\u5982\u679c\u9700\u8981\u52a8\u6001\u5185\u5bb9\u6216\u66f4\u590d\u6742\u7684\u670d\u52a1\u5668\u903b\u8f91\uff0c\u53ef\u4ee5\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Node.js Web \u670d\u52a1\u5668\u3002\u5982\u679c\u4e0d\u9700\u8981\u590d\u6742\u903b\u8f91\uff0c\u53ef\u4ee5\u4f7f\u7528 Python \u7684\u5185\u7f6e HTTP \u670d\u52a1\u5668\u3002_webstorm server \u7aef\u53e3\u5728\u54ea\u91cc\u914d\u7f6e<\/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":[1215,87,43],"topic":[],"class_list":["post-16976","post","type-post","status-publish","format-standard","hentry","category-server","tag-webstorm","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>\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668 - \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\/16976.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u5982\u679c\u4f60\u7684\u9879\u76ee\u9700\u8981\u4e0e\u66f4\u590d\u6742\u7684 Web \u670d\u52a1\u5668\u96c6\u6210\uff0c\u53ef\u4ee5\u4f7f\u7528 Apache \u6216 Nginx\u3002WebStorm \u63d0\u4f9b\u4e86\u5185\u7f6e\u7684 HTTP \u670d\u52a1\u5668\u529f\u80fd\uff0c\u53ef\u4ee5\u5feb\u901f\u9884\u89c8\u9879\u76ee\u7684\u9759\u6001\u6587\u4ef6\uff08HTML\u3001CSS\u3001JS \u7b49\uff09\u3002\u5982\u679c\u9700\u8981\u52a8\u6001\u5185\u5bb9\u6216\u66f4\u590d\u6742\u7684\u670d\u52a1\u5668\u903b\u8f91\uff0c\u53ef\u4ee5\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Node.js Web \u670d\u52a1\u5668\u3002\u5982\u679c\u4e0d\u9700\u8981\u590d\u6742\u903b\u8f91\uff0c\u53ef\u4ee5\u4f7f\u7528 Python \u7684\u5185\u7f6e HTTP \u670d\u52a1\u5668\u3002_webstorm server \u7aef\u53e3\u5728\u54ea\u91cc\u914d\u7f6e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/16976.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T15:24:24+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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16976.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/16976.html\",\"name\":\"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T15:24:24+00:00\",\"dateModified\":\"2025-04-18T15:24:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/16976.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/16976.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16976.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668\"}]},{\"@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":"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668 - \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\/16976.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u5982\u679c\u4f60\u7684\u9879\u76ee\u9700\u8981\u4e0e\u66f4\u590d\u6742\u7684 Web \u670d\u52a1\u5668\u96c6\u6210\uff0c\u53ef\u4ee5\u4f7f\u7528 Apache \u6216 Nginx\u3002WebStorm \u63d0\u4f9b\u4e86\u5185\u7f6e\u7684 HTTP \u670d\u52a1\u5668\u529f\u80fd\uff0c\u53ef\u4ee5\u5feb\u901f\u9884\u89c8\u9879\u76ee\u7684\u9759\u6001\u6587\u4ef6\uff08HTML\u3001CSS\u3001JS \u7b49\uff09\u3002\u5982\u679c\u9700\u8981\u52a8\u6001\u5185\u5bb9\u6216\u66f4\u590d\u6742\u7684\u670d\u52a1\u5668\u903b\u8f91\uff0c\u53ef\u4ee5\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Node.js Web \u670d\u52a1\u5668\u3002\u5982\u679c\u4e0d\u9700\u8981\u590d\u6742\u903b\u8f91\uff0c\u53ef\u4ee5\u4f7f\u7528 Python \u7684\u5185\u7f6e HTTP \u670d\u52a1\u5668\u3002_webstorm server \u7aef\u53e3\u5728\u54ea\u91cc\u914d\u7f6e","og_url":"https:\/\/www.wsisp.com\/helps\/16976.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T15:24:24+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/16976.html","url":"https:\/\/www.wsisp.com\/helps\/16976.html","name":"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T15:24:24+00:00","dateModified":"2025-04-18T15:24:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/16976.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/16976.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/16976.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 WebStorm \u4e2d\u914d\u7f6e\u4e00\u4e2a Web \u670d\u52a1\u5668"}]},{"@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\/16976","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=16976"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/16976\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=16976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=16976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=16976"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=16976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}