{"id":1593,"date":"2025-06-16T20:15:59","date_gmt":"2025-06-16T12:15:59","guid":{"rendered":"https:\/\/aicats.wiki\/?p=1593"},"modified":"2025-06-16T20:16:00","modified_gmt":"2025-06-16T12:16:00","slug":"%e3%80%902025%e6%9c%80%e6%96%b0%e3%80%91%e5%a6%82%e4%bd%95%e6%ad%a3%e7%a1%ae%e5%85%a5%e9%97%a8windsurf%ef%bc%9f%e8%af%b7%e9%81%bf%e5%bc%80%e8%bf%997%e4%b8%aa%e6%a6%82%e5%bf%b5%e4%b8%8e%e7%8e%af","status":"publish","type":"post","link":"https:\/\/aicats.wiki\/tw\/2025\/06\/16\/1593.html","title":{"rendered":"\u30102025\u6700\u65b0\u3011\u5982\u4f55\u6b63\u78ba\u5165\u9580Windsurf\uff1f\u8acb\u907f\u958b\u90197\u500b\u6982\u5ff5\u8207\u74b0\u5883\u7684\u81f4\u547d\u932f\u8aa4"},"content":{"rendered":"<p>Windsurf\u662f\u4e00\u4e2a\u4e3a\u5904\u7406\u5b9e\u65f6\u6570\u636e\u6d41\u548c\u590d\u6742\u7528\u6237\u4ea4\u4e92\u800c\u8bbe\u8ba1\u7684\u524d\u7aef\u6846\u67b6\u3002\u5176\u6838\u5fc3\u662f\u54cd\u5e94\u5f0f\u7f16\u7a0b\u548c\u58f0\u660e\u5f0fUI\u3002\u8bb8\u591a\u5f00\u53d1\u8005\u5728\u5165\u95e8\u65f6\uff0c\u7531\u4e8e\u672a\u80fd\u8f6c\u53d8\u601d\u7ef4\u6a21\u5f0f\uff0c\u5728\u57fa\u7840\u6982\u5ff5\u7406\u89e3\u548c\u9879\u76ee\u73af\u5883\u914d\u7f6e\u9636\u6bb5\u5c31\u9047\u5230\u4e86\u4e25\u91cd\u963b\u788d\uff0c\u5bfc\u81f4\u5b66\u4e60\u6548\u7387\u4f4e\u4e0b\u3002\u672c\u6587\u65e8\u5728\u5256\u6790\u8fd9\u4e9b\u5960\u57fa\u6027\u7684\u9519\u8bef\uff0c\u5e2e\u52a9\u521d\u5b66\u8005\u4ece\u4e00\u5f00\u59cb\u5c31\u5efa\u7acb\u6b63\u786e\u7684\u8ba4\u77e5\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u81f4\u547d\u9519\u8bef\u4e00\uff1a\u5c06\u201c\u54cd\u5e94\u5f0f\u7f16\u7a0b\u201d\u7b49\u540c\u4e8e\u201c\u4e8b\u4ef6\u76d1\u542c\u201d<\/strong><\/h2>\n\n\n\n<p>\u8fd9\u662f\u6700\u6839\u672c\u7684\u6982\u5ff5\u6027\u9519\u8bef\uff0c\u6e90\u4e8e\u5c06\u4f20\u7edf\u547d\u4ee4\u5f0f\u7f16\u7a0b\u7684\u4e60\u60ef\u5e26\u5165Windsurf\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1657\" height=\"856\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/06\/image-18.png\" alt=\"windsurf\" class=\"wp-image-1675\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9519\u8bef\u8ba4\u77e5\uff1a<\/strong>\u00a0\u8ba4\u4e3aWindsurf\u7684\u6838\u5fc3\u5c31\u662f\u7528\u4e00\u79cd\u65b0\u7684\u8bed\u6cd5\u6765\u76d1\u542c\u4e8b\u4ef6\uff08\u5982\u70b9\u51fb\u3001API\u8fd4\u56de\uff09\uff0c\u7136\u540e\u5728\u56de\u8c03\u51fd\u6570\u4e2d\u624b\u52a8\u66f4\u65b0UI\u72b6\u6001\u3002<\/li>\n\n\n\n<li><strong>\u6df1\u5c42\u5256\u6790\u4e0e\u7ea0\u6b63\uff1a<\/strong>\u00a0Windsurf\u7684\u7f16\u7a0b\u6a21\u578b\u662f\u58f0\u660e\u5f0f\u7684\u3002\u5f00\u53d1\u8005\u4e0d\u5e94\u5173\u6ce8\u201c\u5f53X\u53d1\u751f\u65f6\uff0c\u53bb\u505aY\u201d\uff0c\u800c\u5e94\u5173\u6ce8\u201c<strong>\u58f0\u660eZ\u662f\u4ec0\u4e48<\/strong>\u201d\u3002\n<ul class=\"wp-block-list\">\n<li><strong>\u547d\u4ee4\u5f0f\uff08\u4f20\u7edf\u65b9\u5f0f\uff09\uff1a<\/strong>\u00a0<code>button.addEventListener('click', () =&amp;gt; { counter++; document.getElementById('text').innerText = counter; });<\/code>\u00a0\u4f60\u9700\u8981\u624b\u52a8\u63cf\u8ff0\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u3002<\/li>\n\n\n\n<li><strong>\u58f0\u660e\u5f0f\uff08Windsurf\u65b9\u5f0f\uff09\uff1a<\/strong>\u00a0\u4f60\u9700\u8981\u58f0\u660e\u4e00\u4e2a\u201c\u70b9\u51fb\u6d41\u201d<code>click$<\/code>\uff0c\u7136\u540e\u58f0\u660e\u4e00\u4e2a\u201c\u8ba1\u6570\u72b6\u6001\u201d<code>count$<\/code>\u662f\u8fd9\u4e2a\u70b9\u51fb\u6d41\u7ecf\u8fc7<code>scan<\/code>\u64cd\u4f5c\u7b26\u7d2f\u52a0\u7684\u7ed3\u679c\u3002\u6700\u540e\uff0c\u5728\u6a21\u677f\u4e2d\u58f0\u660eUI\u7684\u6587\u672c\u5185\u5bb9\u7ed1\u5b9a\u5230<code>count$<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u6838\u5fc3\u5dee\u5f02\uff1a<\/strong>\u00a0\u4f60\u5b9a\u4e49\u7684\u662f\u6570\u636e\u4e4b\u95f4\u7684<strong>\u5173\u7cfb\u548c\u8f6c\u6362\u7ba1\u9053<\/strong>\uff0c\u800c\u4e0d\u662f\u5177\u4f53\u7684\u6267\u884c\u6b65\u9aa4\u3002\u5f53\u4e0a\u6e38\u6570\u636e\uff08\u70b9\u51fb\u4e8b\u4ef6\uff09\u53d1\u751f\u65f6\uff0c\u53d8\u66f4\u4f1a\u81ea\u52a8\u6cbf\u7740\u4f60\u5b9a\u4e49\u7684\u7ba1\u9053\u6d41\u52a8\uff0c\u6700\u7ec8\u53cd\u6620\u5230UI\u4e0a\u3002\u5165\u95e8\u524d\uff0c\u82b1\u65f6\u95f4\u7406\u89e3Observable\u3001Operator\u8fd9\u4e9b\u54cd\u5e94\u5f0f\u7f16\u7a0b\u7684\u57fa\u672c\u5355\u5143\u81f3\u5173\u91cd\u8981\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u81f4\u547d\u9519\u8bef\u4e8c\uff1a\u4e0d\u5f53\u7684\u9879\u76ee\u811a\u624b\u67b6\u9009\u62e9\u4e0e\u914d\u7f6e<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1657\" height=\"856\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/06\/image-19.png\" alt=\"\" class=\"wp-image-1676\"\/><\/figure>\n\n\n\n<p>Windsurf\u7684\u5b98\u65b9CLI\u5de5\u5177&nbsp;<code>wind-cli<\/code>&nbsp;\u63d0\u4f9b\u4e86\u591a\u79cd\u9879\u76ee\u6a21\u677f\uff0c\u9519\u8bef\u7684\u9009\u62e9\u4f1a\u589e\u52a0\u4e0d\u5fc5\u8981\u7684\u521d\u59cb\u590d\u6742\u5ea6\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9519\u8bef\u8868\u73b0\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li><strong>\u624b\u52a8\u642d\u5efa\uff1a<\/strong>\u00a0\u5f00\u53d1\u8005\u4e3a\u4e86\u8ffd\u6c42\u201c\u5b8c\u5168\u63a7\u5236\u201d\uff0c\u9009\u62e9\u4ece\u96f6\u5f00\u59cb\u624b\u52a8\u914d\u7f6eWebpack\u3001Babel\u548cWindsurf\uff0c\u7ed3\u679c\u5728\u5de5\u7a0b\u5316\u914d\u7f6e\u4e0a\u8017\u8d39\u4e86\u5927\u91cf\u65f6\u95f4\uff0c\u5e76\u4e14\u914d\u7f6e\u53ef\u80fd\u4e0d\u7b26\u5408\u6700\u4f73\u5b9e\u8df5\u3002<\/li>\n\n\n\n<li><strong>\u9009\u62e9\u201c\u6700\u5c0f\u6a21\u677f\u201d\uff1a<\/strong>\u00a0\u4f7f\u7528\u00a0<code>wind-cli new my-app --minimal<\/code>\u3002\u8fd9\u4e2a\u6a21\u677f\u867d\u7136\u542f\u52a8\u5feb\uff0c\u4f46\u7f3a\u5c11\u4e86\u8def\u7531\uff08<code>Windsurf-Router<\/code>\uff09\u3001\u72b6\u6001\u7ba1\u7406\uff08<code>Tide<\/code>\uff09\u548c\u6d4b\u8bd5\u6846\u67b6\u7684\u9884\u914d\u7f6e\u3002\u65b0\u624b\u5f88\u5feb\u4f1a\u53d1\u73b0\u9700\u8981\u81ea\u884c\u96c6\u6210\u8fd9\u4e9b\u5e93\uff0c\u4e14\u96c6\u6210\u65b9\u5f0f\u53ef\u80fd\u4e0e\u6846\u67b6\u8bbe\u8ba1\u4e0d\u7b26\uff0c\u5bfc\u81f4\u540e\u671f\u91cd\u6784\u56f0\u96be\u3002<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><strong>\u6b63\u786e\u505a\u6cd5\uff1a<\/strong>\u00a0\u521d\u5b66\u8005\u5e94\u59cb\u7ec8\u4f7f\u7528\u5b98\u65b9\u63a8\u8350\u7684\u529f\u80fd\u5b8c\u5907\u6a21\u677f\uff0c\u5982\u00a0<code>wind-cli new my-app --template standard<\/code>\u3002\u8be5\u6a21\u677f\u63d0\u4f9b\u4e86\u7ecf\u8fc7\u9884\u914d\u7f6e\u7684\u3001\u80fd\u534f\u540c\u5de5\u4f5c\u7684\u6838\u5fc3\u751f\u6001\u5e93\uff0c\u4f7f\u5f00\u53d1\u8005\u80fd\u76f4\u63a5\u4e13\u6ce8\u4e8e\u6846\u67b6\u672c\u8eab\u7684\u5b66\u4e60\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u81f4\u547d\u9519\u8bef\u4e09\uff1a\u5ffd\u89c6\u5f00\u53d1\u73af\u5883\u7684\u4e00\u81f4\u6027<\/strong><\/h2>\n\n\n\n<p>\u201c\u5728\u6211\u7684\u7535\u8111\u4e0a\u8fd0\u884c\u6b63\u5e38\u201d\u662f\u56e2\u961f\u534f\u4f5c\u4e2d\u7684\u5e38\u89c1\u95ee\u9898\u3002Windsurf\u5bf9Node.js\u548c\u4f9d\u8d56\u7248\u672c\u8f83\u4e3a\u654f\u611f\uff0c\u4e0d\u4e00\u81f4\u7684\u73af\u5883\u4f1a\u5bfc\u81f4\u96be\u4ee5\u8ffd\u8e2a\u7684\u9519\u8bef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1280\" height=\"724\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/06\/ai-generated-8733897_1280-1.jpg\" alt=\"Ai Generated 8733897_1280\" class=\"wp-image-1677\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9519\u8bef\u8868\u73b0\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li>\u56e2\u961f\u6210\u5458\u4f7f\u7528\u4e0d\u540c\u7248\u672c\u7684Node.js\u3002<\/li>\n\n\n\n<li>\u6df7\u5408\u4f7f\u7528<code>npm<\/code>\u3001<code>yarn<\/code>\u548c<code>pnpm<\/code>\uff0c\u5bfc\u81f4<code>lock<\/code>\u6587\u4ef6\u51b2\u7a81\u6216\u4e0d\u88ab\u9075\u5b88\uff0c\u4f7f\u5f97\u4e0d\u540c\u73af\u5883\u4e0b\u5b89\u88c5\u7684\u4f9d\u8d56\u5305\u7684\u6b21\u7ea7\u4f9d\u8d56\u7248\u672c\u4e0d\u4e00\u81f4\u3002<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><strong>\u6b63\u786e\u505a\u6cd5\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li><strong>\u5f3a\u5236\u4f7f\u7528\u7248\u672c\u7ba1\u7406\u5668\uff1a<\/strong>\u00a0\u5728\u9879\u76ee\u4e2d\u5f15\u5165<code>.nvmrc<\/code>\u6216<code>.tool-versions<\/code>\uff08asdf\uff09\u6587\u4ef6\uff0c\u5e76\u5199\u5165\u6307\u5b9a\u7684Node.js\u7248\u672c\uff08\u4f8b\u5982<code>lts\/iron<\/code>\u6216<code>20.11.0<\/code>\uff09\u3002\u56e2\u961f\u6210\u5458\u6216CI\/CD\u73af\u5883\u53ef\u4ee5\u901a\u8fc7<code>nvm use<\/code>\u6216<code>asdf install<\/code>\u547d\u4ee4\u81ea\u52a8\u5207\u6362\u5230\u6b63\u786e\u7684Node\u7248\u672c\u3002<\/li>\n\n\n\n<li><strong>\u7edf\u4e00\u5e76\u9501\u5b9a\u5305\u7ba1\u7406\u5668\uff1a<\/strong>\u00a0\u56e2\u961f\u5185\u7ea6\u5b9a\u4f7f\u7528\u4e00\u79cd\u5305\u7ba1\u7406\u5668\uff08\u63a8\u8350<code>pnpm<\/code>\u56e0\u5176\u9ad8\u6548\u7684\u4f9d\u8d56\u7ba1\u7406\uff09\u3002\u5728\u9879\u76ee\u7684<code>package.json<\/code>\u4e2d\u6dfb\u52a0<code>\"packageManager\": \"pnpm@8.15.0\"<\/code>\u5b57\u6bb5\uff0c\u53ef\u4ee5\u5f3a\u5236\u6240\u6709\u534f\u4f5c\u8005\u4f7f\u7528\u7edf\u4e00\u7684\u5de5\u5177\u548c\u7248\u672c\uff0c\u786e\u4fdd<code>pnpm-lock.yaml<\/code>\u7684\u6743\u5a01\u6027\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u81f4\u547d\u9519\u8bef\u56db\uff1a\u8f7b\u89c6\u5b98\u65b9\u6587\u6863\u7684\u7ed3\u6784\u4e0e\u7528\u9014<\/strong><\/h2>\n\n\n\n<p>\u9047\u5230\u95ee\u9898\u65f6\uff0c\u7b2c\u4e00\u53cd\u5e94\u662f\u641c\u7d22\u5f15\u64ce\u6216AI\u95ee\u7b54\uff0c\u800c\u975e\u67e5\u9605\u5b98\u65b9\u6587\u6863\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u77e5\u8bc6\u83b7\u53d6\u7684\u788e\u7247\u5316\u548c\u4e0d\u51c6\u786e\u6027\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1657\" height=\"856\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/06\/image-20.png\" alt=\"\" class=\"wp-image-1678\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9519\u8bef\u8868\u73b0\uff1a<\/strong>\u00a0\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u7f51\u4e0a\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u800c\u4e0d\u7406\u89e3\u5176\u80cc\u540e\u7684API\u8bbe\u8ba1\u548c\u9002\u7528\u573a\u666f\u3002<\/li>\n\n\n\n<li><strong>\u6b63\u786e\u505a\u6cd5\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li><strong>\u7ed3\u6784\u5316\u9605\u8bfb\uff1a<\/strong>\u00a0\u5c06\u5b98\u65b9\u6587\u6863\u5206\u4e3a\u51e0\u7c7b\u6765\u5bf9\u5f85\uff1a**\u6559\u7a0b\uff08Tutorials\uff09**\u7528\u4e8e\u9996\u6b21\u4e0a\u624b\uff1b**\u6838\u5fc3\u6982\u5ff5\uff08Core Concepts\uff09**\u7528\u4e8e\u5efa\u7acb\u7406\u8bba\u57fa\u7840\uff1b**API\u53c2\u8003\uff08API Reference\uff09**\u7528\u4e8e\u67e5\u8be2\u5177\u4f53\u51fd\u6570\u3001\u7c7b\u6216\u64cd\u4f5c\u7b26\u7684\u7b7e\u540d\u548c\u7528\u6cd5\uff1b**\u98df\u8c31\uff08Cookbook\uff09**\u7528\u4e8e\u67e5\u627e\u7279\u5b9a\u573a\u666f\u7684\u6700\u4f73\u5b9e\u8df5\u3002<\/li>\n\n\n\n<li><strong>\u5584\u7528\u5b98\u65b9Playground\uff1a<\/strong>\u00a0Windsurf\u5b98\u7f51\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5728\u7ebf\u7684\u4ea4\u4e92\u5f0fPlayground\u3002\u5b83\u6700\u91cd\u8981\u7684\u7528\u9014\u662f<strong>\u9694\u79bb\u95ee\u9898<\/strong>\u3002\u5f53\u4f60\u5bf9\u67d0\u4e2a\u64cd\u4f5c\u7b26\u7684\u884c\u4e3a\u6709\u7591\u95ee\u65f6\uff0c\u53ef\u4ee5\u5728Playground\u4e2d\u7528\u6700\u7b80\u5355\u7684\u4ee3\u7801\u590d\u73b0\u5b83\uff0c\u89c2\u5bdf\u5176\u8f93\u5165\u8f93\u51fa\uff0c\u8fd9\u8fdc\u6bd4\u5728\u590d\u6742\u7684\u9879\u76ee\u4e2d\u6253\u65ad\u70b9\u8c03\u8bd5\u8981\u9ad8\u6548\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u81f4\u547d\u9519\u8bef\u4e94\uff1a\u4e0d\u5408\u7406\u7684\u521d\u59cb\u72b6\u6001\u7ed3\u6784\u8bbe\u8ba1<\/strong><\/h2>\n\n\n\n<p>\u53d7\u5176\u4ed6\u6846\u67b6\u6216\u5927\u578b\u9879\u76ee\u7ecf\u9a8c\u7684\u5f71\u54cd\uff0c\u65b0\u624b\u5728\u6784\u5efa\u7b80\u5355\u5e94\u7528\u65f6\u4e5f\u503e\u5411\u4e8e\u8bbe\u8ba1\u4e00\u4e2a\u5e9e\u5927\u3001\u96c6\u4e2d\u7684\u5168\u5c40\u72b6\u6001\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1657\" height=\"856\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/06\/image-21.png\" alt=\"\" class=\"wp-image-1679\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9519\u8bef\u8868\u73b0\uff1a<\/strong>\u00a0\u5c06\u6240\u6709\u6570\u636e\uff0c\u5305\u62ec\u7ec4\u4ef6\u5c40\u90e8\u7684\u3001\u4e34\u65f6\u7684\u72b6\u6001\uff08\u5982\u4e00\u4e2a\u8f93\u5165\u6846\u7684\u5f53\u524d\u503c\u3001\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\u662f\u5426\u5c55\u5f00\uff09\uff0c\u5168\u90e8\u653e\u5165\u5168\u5c40\u7684<code>Tide<\/code>\u00a0store\u4e2d\u3002<\/li>\n\n\n\n<li><strong>\u6b63\u786e\u505a\u6cd5\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li><strong>\u660e\u786e\u72b6\u6001\u7684\u5f52\u5c5e\uff1a<\/strong>\u00a0\u9075\u5faa\u201c\u72b6\u6001\u5c31\u8fd1\u539f\u5219\u201d\u3002\u4e00\u4e2a\u72b6\u6001\u5982\u679c\u53ea\u88ab\u5355\u4e00\u7ec4\u4ef6\u53ca\u5176\u5b50\u7ec4\u4ef6\u4f7f\u7528\uff0c\u5b83\u5c31\u5e94\u8be5\u88ab\u5b9a\u4e49\u5728\u8be5\u7ec4\u4ef6\u5185\u90e8\uff08\u4f7f\u7528<code>createSail<\/code>\u00a0API\uff09\u3002\u8fd9\u4f7f\u5f97\u7ec4\u4ef6\u66f4\u52a0\u5185\u805a\u548c\u53ef\u79fb\u690d\u3002<\/li>\n\n\n\n<li><strong>\u533a\u5206UI\u72b6\u6001\u4e0e\u4e1a\u52a1\u72b6\u6001\uff1a<\/strong>\u00a0\u4e34\u65f6\u7684UI\u72b6\u6001\uff08\u5982\u52a8\u753b\u72b6\u6001\u3001\u8868\u5355\u63a7\u4ef6\u72b6\u6001\uff09\u5e94\u5c3d\u53ef\u80fd\u4fdd\u6301\u5728\u7ec4\u4ef6\u672c\u5730\u3002\u53ea\u6709\u90a3\u4e9b\u9700\u8981\u5728\u5e94\u7528\u591a\u4e2a\u65e0\u76f4\u63a5\u5173\u8054\u7684\u90e8\u5206\u5171\u4eab\u7684\u4e1a\u52a1\u6570\u636e\uff08\u5982\u7528\u6237\u4fe1\u606f\u3001\u4ea7\u54c1\u5217\u8868\uff09\uff0c\u624d\u5e94\u8be5\u88ab\u63d0\u5347\u5230\u5168\u5c40<code>Tide<\/code>\u00a0store\u4e2d\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u81f4\u547d\u9519\u8bef\u516d\uff1a\u5bf9\u6027\u80fd\u6307\u6807\u7684\u7247\u9762\u7406\u89e3<\/strong><\/h2>\n\n\n\n<p>\u201c\u6211\u7528\u4e86Windsurf\uff0c\u4e3a\u4ec0\u4e48\u6211\u7684\u2018Hello World\u2019\u5e94\u7528\u9996\u6b21\u52a0\u8f7d\u6bd4Svelte\u8fd8\u6162\uff1f\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1657\" height=\"856\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/06\/image-22.png\" alt=\"\" class=\"wp-image-1680\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9519\u8bef\u8ba4\u77e5\uff1a<\/strong>\u00a0\u8ba4\u4e3a\u4e00\u4e2a\u6846\u67b6\u5728\u6240\u6709\u6027\u80fd\u6307\u6807\u4e0a\u90fd\u5e94\u662f\u6700\u4f73\u7684\u3002<\/li>\n\n\n\n<li><strong>\u4e8b\u5b9e\u4e0e\u7ea0\u6b63\uff1a<\/strong>\u00a0Windsurf\u7684\u67b6\u6784\u4f18\u52bf\u5728\u4e8e\u7ba1\u7406<strong>\u590d\u6742\u3001\u52a8\u6001\u3001\u9ad8\u9891\u7387\u66f4\u65b0<\/strong>\u7684\u5e94\u7528\u72b6\u6001\u3002\n<ul class=\"wp-block-list\">\n<li><strong>\u9996\u6b21\u5185\u5bb9\u7ed8\u5236\uff08FCP\uff09\uff1a<\/strong>\u00a0\u5bf9\u4e8e\u4e00\u4e2a\u51e0\u4e4e\u9759\u6001\u7684\u9875\u9762\uff0cWindsurf\u7684\u54cd\u5e94\u5f0f\u8fd0\u884c\u65f6\u548c\u4f9d\u8d56\u6ce8\u5165\u7cfb\u7edf\u4f1a\u5e26\u6765\u4e00\u5b9a\u7684\u521d\u59cb\u542f\u52a8\u5f00\u9500\uff0c\u5176FCP\u53ef\u80fd\u4e0d\u5982\u4e00\u4e9b\u7f16\u8bd1\u65f6\u4f18\u5316\u7684\u8f7b\u91cf\u7ea7\u6846\u67b6\u3002<\/li>\n\n\n\n<li><strong>\u53ef\u4ea4\u4e92\u65f6\u95f4\uff08TTI\uff09\u4e0e\u590d\u6742\u573a\u666f\u4e0b\u7684\u66f4\u65b0\u6027\u80fd\uff1a<\/strong>\u00a0Windsurf\u7684\u771f\u6b63\u6027\u80fd\u4f18\u52bf\u4f53\u73b0\u5728\u5e94\u7528\u53d8\u5f97\u590d\u6742\u4e4b\u540e\u3002\u5176\u57fa\u4e8e\u6570\u636e\u6d41\u7684\u7cbe\u7ec6\u5316\u66f4\u65b0\u673a\u5236\uff0c\u53ef\u4ee5\u786e\u4fdd\u5728\u72b6\u6001\u9891\u7e41\u53d8\u5316\u65f6\uff0cUI\u66f4\u65b0\u4f9d\u7136\u9ad8\u6548\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u91cd\u65b0\u6e32\u67d3\uff0c\u4ece\u800c\u5728\u590d\u6742\u7684\u771f\u5b9e\u4e16\u754c\u5e94\u7528\u4e2d\u4fdd\u6301\u8f83\u4f4e\u7684TTI\u548c\u6d41\u7545\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/li>\n\n\n\n<li><strong>\u6b63\u786e\u5fc3\u6001\uff1a<\/strong>\u00a0\u9009\u62e9\u6846\u67b6\u5e94\u57fa\u4e8e\u9879\u76ee\u7684\u4e3b\u8981\u573a\u666f\u3002\u7528Windsurf\u6784\u5efa\u9759\u6001\u535a\u5ba2\u53ef\u80fd\u4e0d\u662f\u6700\u4f18\u89e3\uff0c\u4f46\u7528\u5b83\u6784\u5efa\u5b9e\u65f6\u4eea\u8868\u76d8\u3001\u534f\u4f5c\u5de5\u5177\u6216\u590d\u6742\u7684\u8868\u5355\u5e94\u7528\uff0c\u5219\u80fd\u5145\u5206\u53d1\u6325\u5176\u67b6\u6784\u4f18\u52bf\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u81f4\u547d\u9519\u8bef\u4e03\uff1a\u7f3a\u4e4f\u7edf\u4e00\u7684\u9519\u8bef\u5904\u7406\u6d41<\/strong><\/h2>\n\n\n\n<p>\u6570\u636e\u6d41\u7684\u94fe\u5f0f\u7279\u6027\u610f\u5473\u7740\u9519\u8bef\u53ef\u80fd\u5728\u7ba1\u9053\u7684\u4efb\u4f55\u4e00\u73af\u53d1\u751f\uff0c\u5982\u679c\u5904\u7406\u4e0d\u5f53\uff0c\u4f1a\u5bfc\u81f4\u6574\u4e2a\u6570\u636e\u6d41\u201c\u6b7b\u4ea1\u201d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1657\" height=\"856\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/06\/image-23.png\" alt=\"\" class=\"wp-image-1681\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9519\u8bef\u8868\u73b0\uff1a<\/strong>\u00a0\u53ea\u5728\u6700\u7ec8\u7684<code>.subscribe()<\/code>\u7684\u56de\u8c03\u4e2d\u6dfb\u52a0<code>try...catch<\/code>\uff0c\u6216\u8005\u53ea\u5728<code>subscribe<\/code>\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff08\u9519\u8bef\u5904\u7406\u51fd\u6570\uff09\u4e2d\u5904\u7406\u9519\u8bef\u3002\u8fd9\u65e0\u6cd5\u963b\u6b62\u6570\u636e\u6d41\u672c\u8eab\u56e0\u9519\u8bef\u800c\u7ec8\u6b62\u3002<\/li>\n\n\n\n<li><strong>\u6b63\u786e\u505a\u6cd5\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li><strong>\u5728\u7ba1\u9053\u5185\u90e8\u5904\u7406\u9519\u8bef\uff1a<\/strong>\u00a0\u4f7f\u7528<code>.catchError()<\/code>\u64cd\u4f5c\u7b26\u3002\u5b83\u53ef\u4ee5\u5728\u7ba1\u9053\u4e2d\u6355\u83b7\u4e0a\u6e38\u629b\u51fa\u7684\u9519\u8bef\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e2a\u5907\u7528\u7684\u3001\u65b0\u7684Observable\u6765\u66ff\u4ee3\u51fa\u9519\u7684\u6d41\uff0c\u4ece\u800c\u4fdd\u8bc1\u6574\u4e2a\u7ba1\u9053\u7684\u5b58\u6d3b\u3002<\/li>\n\n\n\n<li><strong>\u5efa\u7acb\u5168\u5c40\u9519\u8bef\u5904\u7406\u670d\u52a1\uff1a<\/strong>\u00a0\u521b\u5efa\u4e00\u4e2a\u53ef\u6ce8\u5165\u7684<code>ErrorHandlingService<\/code>\u3002\u8be5\u670d\u52a1\u5185\u90e8\u7ef4\u62a4\u4e00\u4e2a<code>Subject<\/code>\uff0c\u7528\u4e8e\u63a5\u6536\u5e94\u7528\u5404\u5904\u6355\u83b7\u5230\u7684\u9519\u8bef\u3002\u5176\u4ed6\u670d\u52a1\uff08\u5982\u65e5\u5fd7\u670d\u52a1\u3001\u901a\u77e5\u670d\u52a1\uff09\u53ef\u4ee5\u8ba2\u9605\u8fd9\u4e2a<code>Subject<\/code>\uff0c\u8fdb\u884c\u7edf\u4e00\u7684\u9519\u8bef\u4e0a\u62a5\uff08\u5982\u53d1\u9001\u5230Sentry\uff09\u6216UI\u63d0\u793a\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>\u7d50\u8a9e<\/strong><\/p>\n\n\n\n<p>\u6210\u529f\u5165\u95e8Windsurf\u7684\u5173\u952e\uff0c\u5728\u4e8e\u4ece\u4e00\u5f00\u59cb\u5c31\u62e5\u62b1\u5176\u6570\u636e\u6d41\u7684\u6838\u5fc3\u601d\u60f3\uff0c\u5e76\u5c0a\u91cd\u5176\u5de5\u7a0b\u5316\u7684\u6700\u4f73\u5b9e\u8df5\u3002\u901a\u8fc7\u7cfb\u7edf\u6027\u5730\u89c4\u907f\u4ee5\u4e0a7\u4e2a\u5728\u6982\u5ff5\u548c\u73af\u5883\u9636\u6bb5\u7684\u9519\u8bef\uff0c\u4f60\u5c06\u4e3a\u81ea\u5df1\u7684\u5b66\u4e60\u4e4b\u8def\u94fa\u8bbe\u4e00\u6761\u575a\u5b9e\u800c\u5e73\u5766\u7684\u8f68\u9053\uff0c\u8ba9\u4f60\u80fd\u66f4\u5feb\u5730\u5c06\u6ce8\u610f\u529b\u96c6\u4e2d\u5230\u9a7e\u9a6d\u6570\u636e\u3001\u6784\u5efa\u4f18\u96c5\u5e94\u7528\u7684\u6838\u5fc3\u4e50\u8da3\u4e4b\u4e0a\u3002<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Windsurf\u662f\u4e00\u4e2a\u4e3a\u5904\u7406\u5b9e\u65f6\u6570\u636e\u6d41\u548c\u590d\u6742\u7528\u6237\u4ea4\u4e92\u800c\u8bbe\u8ba1\u7684\u524d\u7aef\u6846\u67b6\u3002\u5176\u6838\u5fc3\u662f\u54cd\u5e94\u5f0f\u7f16\u7a0b\u548c\u58f0\u660e\u5f0fUI\u3002\u8bb8\u591a\u5f00\u53d1 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1675,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crsspst_to_aicatswiki":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1909],"tags":[285],"content_visibility":[262],"class_list":["post-1593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1909","tag-windsurf"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/posts\/1593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/comments?post=1593"}],"version-history":[{"count":5,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/posts\/1593\/revisions"}],"predecessor-version":[{"id":1683,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/posts\/1593\/revisions\/1683"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/media\/1675"}],"wp:attachment":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/media?parent=1593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/categories?post=1593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/tags?post=1593"},{"taxonomy":"content_visibility","embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/content_visibility?post=1593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}