{"id":24471,"date":"2024-11-21T09:03:36","date_gmt":"2024-11-21T01:03:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/24471\/"},"modified":"2024-11-21T09:03:36","modified_gmt":"2024-11-21T01:03:36","slug":"webman%ef%bc%9a%e4%b8%ba%e7%8e%b0%e4%bb%a3%e5%8c%96%e4%bc%81%e4%b8%9a%e7%bd%91%e7%ab%99%e6%8f%90%e4%be%9b%e5%bc%ba%e5%a4%a7%e6%94%af%e6%8c%81%e7%9a%84%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91%e6%a1%86","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/24471\/","title":{"rendered":"Webman\uff1a\u4e3a\u73b0\u4ee3\u5316\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/887\/227\/169296083379167.jpg\" class=\"aligncenter\" title=\"Webman\uff1a\u4e3a\u73b0\u4ee3\u5316\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\u63d2\u56fe\" alt=\"Webman\uff1a\u4e3a\u73b0\u4ee3\u5316\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\u63d2\u56fe\" \/><\/p>\n<p>Webman\uff1a\u4e3a\u73b0\u4ee3\u5316\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6<\/p>\n<p>\u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u4f01\u4e1a\u7f51\u7ad9\u7684\u91cd\u8981\u6027\u8d8a\u6765\u8d8a\u88ab\u4f01\u4e1a\u6240\u8ba4\u8bc6\u548c\u91cd\u89c6\u3002\u4f01\u4e1a\u7f51\u7ad9\u662f\u4f01\u4e1a\u5c55\u793a\u5f62\u8c61\u3001\u5ba3\u4f20\u4ea7\u54c1\u548c\u670d\u52a1\u3001\u4e0e\u5ba2\u6237\u4e92\u52a8\u7684\u91cd\u8981\u7a97\u53e3\uff0c\u56e0\u6b64\u5728\u7f51\u7ad9\u7684\u8bbe\u8ba1\u548c\u5f00\u53d1\u4e0a\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\u3002\u4e3a\u4e86\u6ee1\u8db3\u4f01\u4e1a\u7684\u9700\u6c42\uff0c\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u9700\u8981\u638c\u63e1\u5404\u79cd\u6280\u672f\u6765\u6784\u5efa\u73b0\u4ee3\u5316\u7684\u7f51\u7ad9\u3002\u800cWebman\u4f5c\u4e3a\u4e00\u79cd\u5f3a\u5927\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\uff0c\u4e3a\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u652f\u6301\u3002<\/p>\n<p>Webman\u662f\u4e00\u4e2a\u57fa\u4e8eVue.js\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5feb\u901f\u6784\u5efa\u73b0\u4ee3\u5316\u7684\u4f01\u4e1a\u7f51\u7ad9\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd\u4e00\u4e9bWebman\u6846\u67b6\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5176\u5f3a\u5927\u7684\u529f\u80fd\u3002<\/p>\n<ol>\n<li>\u5bfc\u822a\u680f\u7ec4\u4ef6<\/li>\n<\/ol>\n<p>\u5bfc\u822a\u680f\u662f\u4f01\u4e1a\u7f51\u7ad9\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u901a\u8fc7\u5b83\u53ef\u4ee5\u5bfc\u822a\u5230\u5404\u4e2a\u9875\u9762\u548c\u529f\u80fd\u3002Webman\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u5bfc\u822a\u680f\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u5b9a\u4e49\u6837\u5f0f\u548c\u5e03\u5c40\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5bfc\u822a\u680f\u793a\u4f8b\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>&lt;template&gt;&lt;webman-navbar :menus=\"menus\"&gt;&lt;\/webman-navbar&gt;&lt;\/template&gt;&lt;script&gt;\nimport { Navbar } from 'webman'\n\nexport default {\n  components: {\n    'webman-navbar': Navbar\n  },\n  data() {\n    return {\n      menus: [\n        {title: '\u9996\u9875', url: '\/'}, \n        {title: '\u4ea7\u54c1', url: '\/products'}, \n        {title: '\u5173\u4e8e\u6211\u4eec', url: '\/about'}\n      ]\n    }\n  }\n}\n&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u5e7b\u706f\u7247\u7ec4\u4ef6<\/li>\n<\/ol>\n<p>\u5e7b\u706f\u7247\u662f\u4f01\u4e1a\u7f51\u7ad9\u4e2d\u5e38\u7528\u7684\u5c55\u793a\u529f\u80fd\uff0c\u901a\u5e38\u7528\u4e8e\u5c55\u793a\u4ea7\u54c1\u3001\u63a8\u5e7f\u6d3b\u52a8\u7b49\u5185\u5bb9\u3002Webman\u63d0\u4f9b\u4e86\u5e7b\u706f\u7247\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u81ea\u52a8\u64ad\u653e\u3001\u8f6e\u64ad\u5207\u6362\u7b49\u529f\u80fd\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5e7b\u706f\u7247\u793a\u4f8b\uff1a<\/p>\n<pre>&lt;template&gt;&lt;webman-slider :slides=\"slides\"&gt;&lt;\/webman-slider&gt;&lt;\/template&gt;&lt;script&gt;\nimport { Slider } from 'webman'\n\nexport default {\n  components: {\n    'webman-slider': Slider\n  },\n  data() {\n    return {\n      slides: [\n        {image: 'slide1.jpg', caption: '\u4ea7\u54c11'}, \n        {image: 'slide2.jpg', caption: '\u4ea7\u54c12'}, \n        {image: 'slide3.jpg', caption: '\u4ea7\u54c13'}\n      ]\n    }\n  }\n}\n&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u8868\u5355\u9a8c\u8bc1\u529f\u80fd<\/li>\n<\/ol>\n<p>\u8868\u5355\u662f\u4f01\u4e1a\u7f51\u7ad9\u4e2d\u5e38\u89c1\u7684\u4ea4\u4e92\u65b9\u5f0f\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8868\u5355\u63d0\u4ea4\u4fe1\u606f\u3002Webman\u63d0\u4f9b\u4e86\u8868\u5355\u9a8c\u8bc1\u529f\u80fd\uff0c\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u51cf\u5c11\u524d\u7aef\u9a8c\u8bc1\u4ee3\u7801\u7684\u7f16\u5199\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u8868\u5355\u9a8c\u8bc1\u793a\u4f8b\uff1a<\/p>\n<pre>&lt;template&gt;&lt;webman-form :fields=\"fields\"&gt;&lt;\/webman-form&gt;&lt;\/template&gt;&lt;script&gt;\nimport { Form } from 'webman'\n\nexport default {\n  components: {\n    'webman-form': Form\n  },\n  data() {\n    return {\n      fields: [\n        {label: '\u7528\u6237\u540d', name: 'username', type: 'text', required: true}, \n        {label: '\u5bc6\u7801', name: 'password', type: 'password', required: true}\n      ]\n    }\n  },\n  methods: {\n    submitForm(formData) {\n      \/\/ \u5904\u7406\u8868\u5355\u63d0\u4ea4\u903b\u8f91\n    }\n  }\n}\n&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u793a\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u51faWebman\u6846\u67b6\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5feb\u901f\u6784\u5efa\u73b0\u4ee3\u5316\u7684\u4f01\u4e1a\u7f51\u7ad9\u3002\u65e0\u8bba\u662f\u5bfc\u822a\u680f\u3001\u5e7b\u706f\u7247\u8fd8\u662f\u8868\u5355\u9a8c\u8bc1\uff0cWebman\u90fd\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u63a5\u53e3\u548c\u6587\u6863\uff0c\u5f00\u53d1\u4eba\u5458\u53ea\u9700\u8981\u6309\u7167\u6587\u6863\u8fdb\u884c\u914d\u7f6e\u548c\u4f7f\u7528\u5373\u53ef\u3002<\/p>\n<p>\u603b\u7ed3\u8d77\u6765\uff0cWebman\u662f\u4e00\u4e2a\u4e3a\u73b0\u4ee3\u5316\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\u3002\u5b83\u901a\u8fc7\u63d0\u4f9b\u4e30\u5bcc\u7684\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5feb\u901f\u6784\u5efa\u73b0\u4ee3\u5316\u7684\u7f51\u7ad9\uff0c\u5e76\u51cf\u5c11\u5f00\u53d1\u5de5\u4f5c\u91cf\u3002\u5982\u679c\u4f60\u662f\u4e00\u540d\u524d\u7aef\u5f00\u53d1\u4eba\u5458\uff0c\u90a3\u4e48\u4e0d\u59a8\u5c1d\u8bd5\u4f7f\u7528Webman\u6765\u6784\u5efa\u4f01\u4e1a\u7f51\u7ad9\uff0c\u76f8\u4fe1\u4f60\u4f1a\u88ab\u5176\u5f3a\u5927\u7684\u529f\u80fd\u548c\u7b80\u5355\u6613\u7528\u7684\u63a5\u53e3\u6240\u5438\u5f15\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fWebman\uff1a\u4e3a\u73b0\u4ee3\u5316\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Webman\uff1a\u4e3a\u73b0\u4ee3\u5316\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6 \u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u4f01\u4e1a\u7f51\u7ad9\u7684\u91cd\u8981\u6027\u8d8a\u6765\u8d8a\u88ab\u4f01\u4e1a\u6240\u8ba4\u8bc6\u548c\u91cd\u89c6\u3002\u4f01\u4e1a\u7f51\u7ad9\u662f\u4f01\u4e1a\u5c55\u793a\u5f62\u8c61\u3001\u5ba3\u4f20\u4ea7\u54c1\u548c\u670d\u52a1\u3001\u4e0e\u5ba2\u6237\u4e92\u52a8\u7684\u91cd\u8981\u7a97\u53e3\uff0c\u56e0\u6b64\u5728\u7f51\u7ad9\u7684\u8bbe\u8ba1\u548c\u5f00\u53d1\u4e0a\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\u3002\u4e3a\u4e86\u6ee1\u8db3\u4f01\u4e1a\u7684\u9700\u6c42\uff0c\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u9700\u8981\u638c\u63e1\u5404\u79cd\u6280\u672f\u6765\u6784\u5efa\u73b0\u4ee3\u5316\u7684\u7f51\u7ad9\u3002\u800cWebman\u4f5c\u4e3a\u4e00\u79cd\u5f3a\u5927\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\uff0c\u4e3a\u4f01\u4e1a\u7f51\u7ad9\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u652f\u6301\u3002 Webman\u662f\u4e00\u4e2a\u57fa\u4e8eVue.js\u7684\u524d\u7aef\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5feb\u901f\u6784\u5efa\u73b0\u4ee3\u5316\u7684\u4f01\u4e1a\u7f51\u7ad9\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd\u4e00\u4e9bWebman\u6846\u67b6\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5176\u5f3a\u5927\u7684\u529f\u80fd\u3002 \u5bfc\u822a\u680f\u7ec4\u4ef6 \u5bfc\u822a\u680f\u662f\u4f01\u4e1a\u7f51\u7ad9\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u901a\u8fc7\u5b83\u53ef\u4ee5\u5bfc\u822a\u5230\u5404\u4e2a\u9875\u9762\u548c\u529f\u80fd\u3002Webman\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u5bfc\u822a\u680f\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u5b9a\u4e49\u6837\u5f0f\u548c\u5e03\u5c40\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5bfc\u822a\u680f\u793a\u4f8b\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b &lt;template&gt;&lt;webman-navbar :menus=&#8221;menus&#8221;&gt;&lt;\/webman-navbar&gt;&lt;\/template&gt;&lt;script&gt; import { Navbar } from &#8216;webman&#8217; export default { components: { &#8216;webman-navbar&#8217;: Navbar }, data() { return { menus: [ {title: &#8216;\u9996\u9875&#8217;, url: &#8216;\/&#8217;}, {title: &#8216;\u4ea7\u54c1&#8217;, url: &#8216;\/products&#8217;}, {title: &#8216;\u5173\u4e8e\u6211\u4eec&#8217;, url: &#8216;\/about&#8217;} ] } } } &lt;\/script&gt; \u767b\u5f55\u540e\u590d\u5236 \u5e7b\u706f\u7247\u7ec4\u4ef6 \u5e7b\u706f\u7247\u662f\u4f01\u4e1a\u7f51\u7ad9\u4e2d\u5e38\u7528\u7684\u5c55\u793a\u529f\u80fd\uff0c\u901a\u5e38\u7528\u4e8e\u5c55\u793a\u4ea7\u54c1\u3001\u63a8\u5e7f\u6d3b\u52a8\u7b49\u5185\u5bb9\u3002Webman\u63d0\u4f9b\u4e86\u5e7b\u706f\u7247\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u81ea\u52a8\u64ad\u653e\u3001\u8f6e\u64ad\u5207\u6362\u7b49\u529f\u80fd\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5e7b\u706f\u7247\u793a\u4f8b\uff1a &lt;template&gt;&lt;webman-slider :slides=&#8221;slides&#8221;&gt;&lt;\/webman-slider&gt;&lt;\/template&gt;&lt;script&gt; import { Slider } from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-24471","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/24471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=24471"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/24471\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=24471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=24471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=24471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}