{"id":8544,"date":"2024-04-27T13:01:01","date_gmt":"2024-04-27T05:01:01","guid":{"rendered":""},"modified":"2024-04-27T13:01:01","modified_gmt":"2024-04-27T05:01:01","slug":"[\u67b6\u6784\u4e4b\u8def-216]- \u67b6\u6784 - \u6982\u5ff5\u67b6\u6784 - \u6a21\u5757\uff08Module\uff09\u3001\u7ec4\u4ef6\uff08Component\uff09\u3001\u5305\uff08Package\uff09\u3001\u5bf9\u8c61\u3001\u51fd\u6570\u7684\u533a\u522b","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8544.html","title":{"rendered":"[\u67b6\u6784\u4e4b\u8def-216]- \u67b6\u6784 - \u6982\u5ff5\u67b6\u6784 - \u6a21\u5757\uff08Module\uff09\u3001\u7ec4\u4ef6\uff08Component\uff09\u3001\u5305\uff08Package\uff09\u3001\u5bf9\u8c61\u3001\u51fd\u6570\u7684\u533a\u522b"},"content":{"rendered":"
\u5728\u8f6f\u4ef6\u67b6\u6784\u4e2d\uff0c\u4e00\u4e2a\u91cd\u8981\u7684\u4efb\u52a1\u5c31\u662f\u5207\u5206\u7cfb\u7edf\uff0c\u800c\u5207\u5206\u7cfb\u7edf\u8fdb\u7a0b\u6d89\u53ca\u5230\u4e00\u4e2a\u57fa\u672c\u7684\u6982\u5ff5\uff0c\u5982\u6a21\u5757\uff08Module\uff09\u3001\u7ec4\u4ef6\uff08Component\uff09\u3001\u5305\uff08Package\uff09\u3001\u5bf9\u8c61\uff0c\u672c\u6587\u6f84\u6e05\u4ed6\u4eec\u7684\u533a\u522b\u3002<\/p>\n
\u7ec4\u4ef6(Component)\u548c\u6a21\u5757(Module)\u662f\u4e00\u5bf9\u5bb9\u6613\u6df7\u6dc6\u7684\u540d\u8bcd\uff0c\u4e5f\u5e38\u5e38\u88ab\u7528\u6765\u76f8\u4e92\u66ff\u6362\u3002<\/p>\n
\u4e24\u8005\u662f\u5426\u6709\u5dee\u5f02\u5f80\u5f80\u53d6\u51b3\u4e13\u4e1a\u80cc\u666f\u3001\u6240\u5728\u9886\u57df\u3001\u4ee5\u53ca\u89c6\u89d2\u3002<\/p>\n
\u4ece\u8bbe\u8ba1\u4e0a\u6765\u770b\uff0c\u7ec4\u4ef6\u5f3a\u8c03\u590d\u7528\uff0c\u6a21\u5757\u5f3a\u8c03\u804c\u8d23(\u5185\u805a\u3001\u5206\u79bb)\uff0c\u6216\u8005\u8bf4\u7ec4\u4ef6\u662f\u8fbe\u5230\u53ef\u590d\u7528\u8981\u6c42\u7684\u6a21\u5757\u3002<\/p>\n
\u6a21\u5757\u3001\u7ec4\u4ef6\u548c\u5bf9\u8c61\u8fd9\u4e09\u4e2a\u540d\u8bcd\uff0c\u662f\u8f6f\u4ef6\u5f00\u53d1\u4e2d\u975e\u5e38\u5e38\u89c1\u7684\u8bf4\u6cd5\u3002\u5728\u5f88\u591a\u8f6f\u4ef6\u5e73\u53f0\u3001\u5e93\u3001\u6846\u67b6\u4e2d\uff0c\u90fd\u4f7f\u7528\u8fd9\u4e09\u4e2a\u540d\u8bcd\u4f5c\u4e3a\u63cf\u8ff0\u5176\u590d\u6742\u7ed3\u6784\u7684\u5355\u5143\u7ed3\u6784\u3002\u6a21\u5757\u3001\u7ec4\u4ef6\u3001\u5bf9\u8c61\u4e09\u8005\u867d\u7136\u6709\u76f8\u4f3c\u7684\u542b\u4e49\uff0c\u4f46\u662f\uff0c\u4e5f\u6709\u975e\u5e38\u5927\u7684\u5dee\u522b\uff0c\u672c\u6587\u63a2\u7a76\u8fd9\u4e09\u4e2a\u6982\u5ff5\u7684\u5f02\u540c\u76ee\u7684\uff0c\u5e76\u975e\u4ec5\u4ec5\u662f\u89c4\u8303\u8fd9\u4e9b\u7528\u8bed\uff0c\u800c\u662f\u5e0c\u671b\u80fd\u5bf9\u590d\u6742\u8f6f\u4ef6\u7684\u89e3\u6784\u5355\u4f4d\uff0c\u4f5c\u4e00\u6b21\u8f83\u5b8c\u6574\u7684\u601d\u8003\u3002<\/p>\n
\u5907\u6ce8\uff1a<\/strong><\/span><\/p>\n \u5728\u6709\u4e9b\u573a\u5408\u548c\u4e66\u7c4d\u4e2d\uff0c\u4e0a\u8ff0\u6982\u5ff5\u7684\u5173\u7cfb\u662f\uff1a\u51fd\u6570 --\u300b\u6a21\u5757--\u300b\u7ec4\u4ef6--\u300b\u5305<\/strong><\/span><\/p>\n<\/p>\n \u5b59\u5b50\u5175\u6cd5\u4e91\uff1a\u201c\u5236\u4f17\u5982\u6cbb\u5be1\uff0c\u5206\u800c\u6cbb\u4e4b\u201d\u3002\u610f\u601d\u662f\uff1a\u5904\u7406\u6570\u91cf\u5e9e\u5927\u800c\u590d\u6742\u7684\u4e8b\u7269\uff0c\u5176\u5b9e\u548c\u5904\u7406\u7b80\u5355\u3001\u5355\u4e00\u7684\u4e8b\u7269\u4e00\u6837\u7b80\u5355\uff0c\u5173\u952e\u662f\u8981\u628a\u5904\u7406\u7684\u76ee\u6807\u5206\u89e3\u5f00\u3002<\/p>\n \u8f6f\u4ef6\u7cfb\u7edf\u7684\u53d1\u5c55\u8fc7\u7a0b\u91cc\uff0c\u4e5f\u5bf9\u5206\u89e3\u6709\u5f88\u591a\u4e0d\u540c\u7684\u5c1d\u8bd5\u3002<\/span><\/strong><\/p>\n \u65e9\u671f\u7ed3\u6784\u5316\u7f16\u7a0b\u6d41\u884c\u7684\u9636\u6bb5\uff0c\u8f6f\u4ef6\u662f\u4e00\u4e2a\u88ab\u5c42\u5c42\u5206\u89e3\u7684\u51fd\u6570<\/strong><\/span>\uff0c\u6bcf\u4e2a\u51fd\u6570\u90fd\u88ab\u5212\u5206\u6210\u66f4\u591a\uff0c\u5177\u5907\u5e73\u884c\u542b\u4e49\u7684\u5b50\u51fd\u6570\u3002\u6574\u4e2a\u7a0b\u5e8f\u7684\u7ed3\u6784\u5c31\u597d\u50cf\u4e00\u672c\u5206\u7c7b\u5b66\u4e66\u7c4d\uff0c\u7531\u4e00\u4e2a\u4e3b\u9898\u76eemain()\uff0c\u5212\u5206\u6210\u975e\u5e38\u591a\u7684\u5b50\u6807\u9898\uff0c\u5b50\u6807\u9898\u4e0b\u9762\u53c8\u5206\u4e3a\u66f4\u5c0f\u7684\u6807\u9898\uff0c\u5f62\u6210\u4e00\u4e2a\u6811\u72b6\u7684\u7ed3\u6784\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n <\/p>\n \u5982\u679c\u6211\u4eec\u9700\u8981\u5bf9\u8fd9\u6837\u4e00\u4e2a\u7a0b\u5e8f\u7684\u67d0\u90e8\u5206\u4ee3\u7801\u91cd\u7528\uff0c\u4e5f\u5c31\u662f\u8bf4\u62bd\u53d6\u5176\u4e2d\u4e00\u90e8\u5206\u4ee3\u7801\uff0c\u653e\u5230\u5176\u4ed6\u7a0b\u5e8f\u91cc\u9762\uff0c\u90a3\u4e48\uff0c\u4e00\u822c\u6765\u8bf4\u90fd\u8981\u4ee5\u201c\u51fd\u6570\u201d\u4e3a\u5305\u88c5\u5f62\u5f0f\uff0c\u5426\u5219\uff0c\u62f7\u8d1d\u6574\u6bb5\u4ee3\u7801\u7684\u7f3a\u70b9\u662f\u663e\u800c\u6613\u89c1\u7684\u3002<\/p>\n \u51fd\u6570\u7528\u4f5c\u6765\u91cd\u7528\u4ee3\u7801\uff0c\u5929\u7136\u7684\u6709\u5176\u63a5\u53e3\u5f62\u5f0f\uff1a\u53c2\u6570\u4e0e\u8fd4\u56de\u503c\uff08\u6216\u8005\u662f\u8f93\u5165\u53c2\u6570\u4e0e\u8f93\u51fa\u53c2\u6570\uff09\u3002\u56e0\u6b64\uff0c\u4e00\u4e2a\u51fd\u6570\uff0c\u5c31\u80fd\u6210\u4e3a\u4e00\u4e2a\u5c01\u95ed\u7684\u4ee3\u7801\u5757<\/span><\/strong>\uff0c\u5177\u5907\u56fa\u5b9a\u7684\u8f93\u5165\u548c\u8f93\u51fa\u63a5\u53e3<\/strong><\/span>\uff0c\u591a\u4e2a\u529f\u80fd\u76f8\u5173\u7684\u51fd\u6570\uff0c\u7ec4\u5408\u5728\u4e00\u8d77\uff0c\u6211\u4eec\u79f0\u4e4b\u4e3a\u6a21\u5757<\/strong>\u3002<\/p>\n <\/p>\n \u7136\u800c\uff0c\u5f53\u6211\u4eec\u5728\u7f16\u5199\u201c\u51fd\u6570\u6a21\u5757\u201d\u7684\u65f6\u5019\uff0c\u5f80\u5f80\u4f1a\u53d1\u73b0\uff0c\u9488\u5bf9\u540c\u4e00\u5757\u6570\u636e\uff0c\u5f80\u5f80\u9700\u8981\u591a\u4e2a\u51fd\u6570\u6765\u4e00\u8d77\u64cd\u4f5c\u3002\u6bd4\u5982\u6211\u4eec\u64cd\u4f5c\u6587\u4ef6\uff0c\u9488\u5bf9\u7279\u5b9a\u7684\u4e00\u4e2a\u6587\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u6253\u5f00\u3001\u6dfb\u52a0\u3001\u5220\u9664\u3001\u5173\u95ed\u8fd9\u4e2a\u6587\u4ef6\u3002\u5982\u679c\u6bcf\u4e2a\u64cd\u4f5c\u90fd\u662f\u4e00\u4e2a\u51fd\u6570\uff0c\u90a3\u4e48\u6211\u4eec\u7684\u8f93\u51fa\u53c2\u6570\u5f80\u5f80\u90fd\u9700\u8981\u4e00\u4e2a\u4ee3\u8868\u6587\u4ef6\u7684\u6307\u9488\uff1b\u800c\u8fd9\u4e2a\u6307\u9488\uff0c\u53c8\u5f80\u5f80\u662f\u5176\u4ed6\u51fd\u6570\u7684\u8f93\u5165\u53c2\u6570\u3002\u2014\u2014\u8fd9\u79cd\u505a\u6cd5\uff0c\u5b9e\u9645\u4e0a\u662f\u7834\u574f\u4e86\u6a21\u5757\u7684\u91cd\u7528\u6027\uff0c\u56e0\u4e3a\u9488\u5bf9\u201c\u6a21\u5757\u201d\u8fd9\u4e2a\u6982\u5ff5\uff0c\u6211\u4eec\u8bbe\u60f3\u7684\u662f\uff0c\u80fd\u7b80\u5355\u4f7f\u7528\u4e00\u4e9b\u8f93\u5165\u53c2\u6570\uff0c\u5c31\u80fd\u83b7\u5f97\u64cd\u4f5c\u7ed3\u679c\uff0c\u800c\u4e0d\u5e0c\u671b\u8fd8\u8981\u5173\u5fc3\u8f93\u5165\u53c2\u6570\u7684\u72b6\u6001\uff0c\u4ee5\u53ca\u7ef4\u62a4\u8f93\u51fa\u53c2\u6570\u7684\u72b6\u6001\u3002\u7531\u4e8e\u6211\u4eec\u7f16\u5199\u7684\u5927\u591a\u6570\u5546\u4e1a\u7cfb\u7edf\u4e2d\uff0c\u90fd\u662f\u9488\u5bf9\u4e00\u4e9b\u6570\u636e\u8fdb\u884c\u64cd\u4f5c\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u8fdb\u884c\u67d0\u4e9b\u6570\u636e\u7684\u8fd0\u7b97\uff0c\u6240\u4ee5\u6570\u636e\u72b6\u6001\u53cd\u800c\u6210\u4e86\u7a0b\u5e8f\u7684\u6838\u5fc3\uff0c\u5404\u79cd\u6240\u8c13\u7684\u201c\u6a21\u5757\u201d\uff0c\u90fd\u662f\u4e3a\u4e86\u4fee\u6539\u3001\u64cd\u4f5c\u67d0\u4e9b\u7279\u5b9a\u6570\u636e\u7684\u5de5\u5177\u800c\u5df2\u3002\u662f\u4e00\u7ec4\u51fd\u6570\u7684\u7ec4\u5408\u3002<\/span><\/strong><\/p>\n <\/p>\n \u4e5f\u8bb8\u6709\u4eba\u4f1a\u8bf4\uff0c\u8fd9\u6837\u7684\u5de5\u5177\u6a21\u5757\u4e0d\u4e5f\u662f\u633a\u597d\u7684\u5417\uff1f\u5f53\u7136\uff0c\u4ece\u4ee3\u7801\u91cd\u7528\u7684\u89d2\u5ea6\u6765\u8bf4\uff0c\u6a21\u5757\u548c\u5de5\u5177\u90fd\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u88ab\u91cd\u7528\u5728\u9700\u8981\u7684\u5730\u65b9\u3002\u4f46\u662f\uff0c\u6211\u4eec\u5e0c\u671b\u88ab\u91cd\u7528\u7684\u4ee3\u7801\uff0c\u662f\u80fd\u591f\u6bd4\u8f83\u7b80\u5355\u7684\u53bb\u4f7f\u7528\u7684\uff0c\u5982\u679c\u4f7f\u7528\u201c\u5de5\u5177\u578b\u51fd\u6570\u201d\uff0c\u9700\u8981\u7528\u6237\u53bb\u5c0f\u5fc3\u7684\u7ef4\u62a4\u4e00\u4e2a\u590d\u6742\u7684\u6570\u636e\u6a21\u578b\uff0c\u90a3\u4e48\u5c31\u8fbe\u4e0d\u5230\u201c\u7b80\u5355\u201d\u7684\u91cd\u7528\u4ee3\u7801\u7684\u76ee\u7684\u4e86\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5982\u679c\u6211\u4eec\u670910\u4e2a\u5de5\u5177\u51fd\u6570\uff0c\u90fd\u662f\u64cd\u4f5c\u540c\u4e00\u4e2a\u6570\u636e\u6307\u9488\u7684\uff0c\u800c\u8fd9\u4e9b\u51fd\u6570\u7684\u8c03\u7528\u8fd8\u662f\u6709\u4e00\u5b9a\u7684\u8c03\u7528\u987a\u5e8f\u6216\u5176\u4ed6\u903b\u8f91\u7ea6\u675f\u7684\uff0c\u90a3\u4e48\u6211\u4eec\u5728\u4f7f\u7528\u7684\u65f6\u5019\uff0c\u5c31\u8981\u8ba4\u5b57\u4ed4\u7ec6\u7684\u67e5\u770b\u4f8b\u7a0b\uff0c\u5f7b\u5e95\u641e\u660e\u767d\u8fd910\u4e2a\u51fd\u6570\u7684\u5173\u7cfb\uff0c\u7136\u540e\u6309\u8bbe\u8ba1\u8005\u7684\u601d\u8def\u5c0f\u5fc3\u7ffc\u7ffc\u7684\u53bb\u4f7f\u7528\u3002\u5426\u5219\uff0c\u5982\u679c\u53ea\u662f\u770b\u4e86\u4e0b\u51fd\u6570\u624b\u518c\u5c31\u7528\u8d77\u6765\uff0c\u5f88\u53ef\u80fd\u5c31\u4f1a\u78b0\u5230\u8bf8\u5982\u201c\u672a\u5b9a\u4e49\u201d\u7684\u7ed3\u679c\u8fd9\u7c7b\u5947\u602a\u7684\u9519\u8bef\u3002<\/p>\n <\/p>\n \u663e\u7136\uff0c\u6211\u4eec\u5bf9\u4e8e\u201c\u6a21\u5757\u201d\u7684\u8ffd\u6c42\uff0c\u65e0\u6cd5\u7b80\u5355\u7684\u7528\u51fd\u6570\u8fd9\u4e2a\u5de5\u5177\u6765\u5b9e\u73b0\uff0c\u56e0\u6b64\u4eba\u4eec\u60f3\u5230\uff0c\u6211\u4eec\u80fd\u4e0d\u80fd\u628a\u6570\u636e\u548c\u51fd\u6570\u7ec4\u5408\u8d77\u6765\uff0c\u8fd9\u6837\u4f7f\u7528\u7684\u65f6\u5019\uff0c\u5c31\u4e0d\u9700\u8981\u5728\u4f7f\u7528\u7684\u65f6\u5019\u53bb\u7ef4\u62a4\u590d\u6742\u7684\u72b6\u6001\u3002\u2014\u2014\u56e0\u6b64\u8bde\u751f\u4e86\u9762\u5411\u5bf9\u8c61\u3002\u8fd9\u91cc\u7684\u201c\u5bf9\u8c61\u201d\uff0c\u6307\u7684\u5c31\u662f\u628a\u6570\u636e\uff0c\u548c\u64cd\u4f5c\u8fd9\u4e9b\u6570\u636e\u51fd\u6570\uff0c\u6839\u636e\u5185\u5728\u903b\u8f91\u5c01\u88c5\u8d77\u6765\u7684\u5355\u4f4d\u3002\u7531\u4e8e\u6709\u4e86\u8fd9\u79cd\u5c01\u88c5\uff0c\u4e00\u4e2a\u5bf9\u8c61\u9664\u4e86\u4ee3\u8868\u4e1a\u52a1\u6570\u636e\u72b6\u6001\u4ee5\u5916\uff0c\u8fd8\u9644\u5e26\u4e86\u4e00\u7cfb\u5217\u7684\u201c\u65b9\u6cd5\u201d\uff0c\u8fd9\u4e9b\u201c\u65b9\u6cd5\u51fd\u6570\u201d\u662f\u53ef\u4ee5\u968f\u65f6\u968f\u610f\u7684\u8c03\u7528\uff0c\u800c\u7528\u6765\u64cd\u4f5c\u5bf9\u8c61\u7684\u3002<\/p>\n \u867d\u7136\u8fd9\u4e9b\u201c\u65b9\u6cd5\u51fd\u6570\u201d\u540c\u6837\u8fd8\u662f\u53ef\u4ee5\u8bbe\u7f6e\u201c\u8f93\u5165\u53c2\u6570\u201d\u548c\u201c\u8f93\u51fa\u53c2\u6570\u201d\uff0c\u4f46\u662f\u6211\u4eec\u5b8c\u5168\u53ef\u4ee5\u628a\u65b9\u6cd5\u51fd\u6570\u6240\u4f9d\u9644\u7684\u5bf9\u8c61\uff08this\u5bf9\u8c61\uff09\uff0c\u4f5c\u4e3a\u81ea\u7531\u64cd\u4f5c\u7684\u8f93\u5165\u6216\u8f93\u51fa\u53c2\u6570\u3002\u6211\u4eec\u5728\u7f16\u5199\u65b9\u6cd5\u51fd\u6570\u7684\u65f6\u5019\uff0c\u5c31\u53ef\u4ee5\u6709\u610f\u8bc6\u7684\u53bb\u7ba1\u7406\u6240\u4f9d\u8d56\u7684\u6570\u636e\u72b6\u6001\u2014\u2014this\u5bf9\u8c61\uff0c\u8fd9\u6837\u4efb\u4f55\u4e00\u4e2a\u65b9\u6cd5\u51fd\u6570\uff0c\u90fd\u53ef\u4ee5\u660e\u786e\u800c\u552f\u4e00\u7684\u64cd\u4f5cthis\u7684\u5185\u5bb9\uff0c\u800c\u65e0\u9700\u7528\u6237\u53bb\u64cd\u5fc3\u3002<\/p>\n \u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5982\u679c\u6211\u4eec\u7528\u9762\u5411\u5bf9\u8c61\u7684\u7c7b\u5e93\u53bb\u64cd\u4f5c\u6587\u4ef6\uff0c\u6211\u4eec\u53ea\u9700\u8981\u521b\u5efa\u4e00\u4e2aFile\u5bf9\u8c61\uff0c\u5c31\u53ef\u4ee5\u968f\u610f\u7684\u5220\u9664\u3001\u66f4\u65b0\u3001\u4fee\u6539\u8fd9\u4e2a\u5bf9\u8c61\u7684\u5185\u5bb9\u3002\u5982\u679c\u8fd9\u4e2a\u5bf9\u8c61\u5bf9\u5e94\u7684\u6587\u4ef6\u6ca1\u6709\u6253\u5f00\uff0c\u6216\u8005\u4e0d\u5b58\u5728\uff0c\u90a3\u4e48File\u5bf9\u8c61\u672c\u8eab\u4f1a\u6709\u4e00\u4e2a\u72b6\u6001\u503c\u505a\u8bb0\u5f55\uff0c\u90a3\u4e9b\u5220\u9664\u3001\u66f4\u65b0\u7684\u65b9\u6cd5\u5c31\u53ef\u4ee5\u5148\u5224\u65ad\u4e00\u4e0b\u8fd9\u4e2a\u72b6\u6001\u503c\uff0c\u4ece\u800c\u8fd4\u56de\u201c\u9519\u8bef\u201d\u63d0\u793a\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u907f\u514d\u7528\u6237\u53bb\u6309\u7167\u67d0\u4e9b\u903b\u8f91\u7ea6\u675f\u4f7f\u7528\u5404\u4e2a\u65b9\u6cd5\uff0c\u6781\u5927\u7684\u964d\u4f4e\u4e86\u5bf9\u8c61\u4f5c\u4e3a\u201c\u6a21\u5757\u201d\u7684\u5b66\u4e60\u96be\u5ea6\u3002<\/p>\n <\/p>\n \u5bf9\u8c61\u8fd9\u4e2a\u6982\u5ff5\uff0c\u5bf9\u4e8e\u90a3\u4e9b\u5e0c\u671b\u628a\u6570\u636e+\u64cd\u4f5c\u6784\u5efa\u6210\u6a21\u5757\u7684\u60c5\u51b5\uff0c\u662f\u975e\u5e38\u5408\u9002\u7684\u3002\u4f46\u662f\uff0c\u4ed6\u4e5f\u6709\u4e00\u4e9b\u7f3a\u70b9\u3002\u5176\u4e2d\u6709\u4e00\u4e2a\u975e\u5e38\u5178\u578b\uff0c\u5c31\u662f\u5bf9\u8c61\u6a21\u578b\u662f\u4e00\u4e2a\u7f16\u7a0b\u8bed\u8a00\u7684\u6982\u5ff5\uff0c\u672c\u8d28\u4e0a\u4e00\u4e2a\u5bf9\u8c61\u53ea\u662f\u5185\u5b58\u4e2d\u7684\u4e00\u5806\u6570\u636e\u3002\u7136\u800c\u6211\u4eec\u8981\u4f7f\u7528\u7684\u6a21\u5757\uff0c\u5f80\u5f80\u4e0d\u6b62\u662f\u5185\u5b58\u4e2d\u7684\u4e00\u5806\u6570\u5b57\u5c31\u80fd\u89e3\u51b3\u95ee\u9898\u7684\u3002\u6bd4\u5982\u6211\u4eec\u9700\u8981\u7ba1\u7406\u6570\u636e\u5e93\u4e2d\u7684\u4e00\u4e2a\u8868\uff0c\u6216\u8005\u64cd\u4f5c\u4e00\u4e2aGUI\u7684\u6309\u94ae\uff0c\u53c8\u6216\u8005\u63a7\u5236\u4e00\u4e2a\u6e38\u620f\u91cc\u9762\u7684\u52a8\u753b\u89d2\u8272\u2026\u2026\u8fd9\u4e9b\u90fd\u4e0d\u6b62\u7528\u5185\u5b58\u4e2d\u7684\u201c\u5c5e\u6027\u201d\u80fd\u6ee1\u8db3\u3002<\/p>\n \u8fd9\u4e2a\u65f6\u5019\uff0c\u4eba\u4eec\u4f9d\u6258IDE\u5de5\u5177\uff0c\u628a\u8bb8\u591a\u9700\u8981\u590d\u7528\u7684\u590d\u6742\u6570\u636e\uff0c\u548c\u5bf9\u8c61\u6a21\u578b\u5173\u8054\u8d77\u6765\uff0c\u5c01\u88c5\u6210\u4e00\u4e2a\u4e2a\u53ef\u4ee5\u6839\u636e\u9884\u5148\u7ea6\u675f\u7684\u7528\u6cd5\u53bb\u4f7f\u7528\u7684\u6a21\u5757\uff0c\u8fd9\u5c31\u662f\u7ec4\u4ef6\u4e86<\/span><\/strong>\u3002\u7ec4\u4ef6\u4e00\u822c\u4f1a\u6bd4\u5bf9\u8c61\u7684\u7ea6\u675f\u8981\u591a\uff0c\u56e0\u4e3a\u6bcf\u4e00\u7c7b\u7ec4\u4ef6\uff0c\u90fd\u6709\u660e\u786e\u7684\u4f7f\u7528\u63a5\u53e3\uff0c\u4ee5\u4fbf\u80fd\u201c\u7ec4\u5408\u201d\u5230\u67d0\u4e2a\u6846\u67b6\u91cc\u9762\u3002\u6bd4\u5982JavaBean\u89c4\u8303\u89c4\u5b9a\uff0c\u6240\u6709\u8fd9\u7c7b\u7684\u7ec4\u4ef6\uff0c\u5fc5\u987b\u8981\u4ee5getter\/setter\u7684\u5f62\u5f0f\u5bf9\u5916\u63d0\u4f9b\u5c5e\u6027\u7684\u8bfb\u5199\u3002\u53c8\u6bd4\u5982Flex\u89c4\u8303\u4e2d\uff0c\u7ec4\u4ef6\u751a\u81f3\u53ef\u4ee5\u4ec5\u4ec5\u7528XML\u6765\u63cf\u8ff0\uff0c\u800c\u4e0d\u5fc5\u8981\u662f\u67d0\u79cd\u7a0b\u5e8f\u4ee3\u7801\u3002<\/p>\n \u603b\u4f53\u6765\u8bf4\uff0c\u6240\u8c13\u7ec4\u4ef6\uff0c\u662f\u5728\u67d0\u5957\u4f7f\u7528\u89c4\u8303\u4e0b\uff0c\u7279\u522b\u6784\u5efa\u7684\u8f6f\u4ef6\u6a21\u5757\u3002\u8fd9\u79cd\u6a21\u5757\u5f88\u591a\u4f9d\u6258\u5bf9\u8c61\u6a21\u578b\uff0c\u6709\u6240\u8c13\u201c\u5c5e\u6027\u201d\u548c\u201c\u65b9\u6cd5\u201d\u3002\u4f46\u662f\u8fd9\u4e9b\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u4e3a\u4e86\u80fd\u63d0\u4f9b\u66f4\u76f4\u89c2\u65b9\u4fbf\u7684\u4f7f\u7528\u63a5\u53e3\uff0c\u4e00\u822c\u4f1a\u6709\u6240\u7ea6\u675f\u3002\u4e00\u65e6\u6ee1\u8db3\u8fd9\u4e9b\u7ea6\u675f\uff0c\u5f00\u53d1\u8005\u91cd\u7528\u8fd9\u79cd\u6a21\u5757\u7684\u65f6\u5019\uff0c\u751a\u81f3\u662f\u4e0d\u9700\u8981\u7528\u7f16\u7a0b\u8bed\u8a00\u6765\u8c03\u7528\u8fd9\u4e9b\u201c\u5c5e\u6027\u201d\u3001\u201c\u65b9\u6cd5\u201d\u3002\u6240\u4ee5\u7ec4\u4ef6\u548c\u5bf9\u8c61\u7684\u5dee\u522b\uff0c\u5f80\u5f80\u662f\u5728\u4e8e\u5176\u7ea6\u675f\u65b9\u9762\u3002\u5f88\u591a\u7ec4\u4ef6\u90fd\u8981\u6c42\u5bf9\u8c61\u4ece\u67d0\u4e2a\u57fa\u7c7b\u6d3e\u751f\uff0c\u6216\u8005\u8981\u6709\u4e00\u4e2a\u4e3b\u52a8\u6ce8\u518c\u548c\u6821\u9a8c\u7684\u7a0b\u5e8f\uff0c\u624d\u80fd\u4ece\u5bf9\u8c61\u7f16\u7a0b\u7ec4\u4ef6\u3002\u4f46\u662f\u53cd\u8fc7\u6765\u4e00\u822c\u7ec4\u4ef6\u90fd\u63d0\u4f9b\u67d0\u79cd\u7f16\u7a0b\u8bed\u8a00\u4e0b\u7684\u5bf9\u8c61\u6a21\u578b\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u5bf9\u5176\u7f16\u5199\u4ee3\u7801\u3002<\/p>\n <\/p>\n \u56e0\u6b64\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\uff0c\u6a21\u5757\u3001\u5bf9\u8c61\u3001\u7ec4\u4ef6\u4e4b\u95f4\u662f\u6709\u4e00\u5b9a\u7684\u5173\u7cfb\uff0c\u4f46\u5e76\u4e0d\u5b8c\u5168\u7b49\u540c\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u6211\u4eec\u559c\u6b22\u628a\u4efb\u4f55\u53ef\u91cd\u7528\u7684\u4ee3\u7801\u90fd\u6210\u4e3a\u6a21\u5757\uff0c\u6211\u4eec\u5e0c\u671b\u6a21\u5757\u662f\u7b80\u5355\u7684\u3001\u4ec5\u4ec5\u901a\u8fc7\u8f93\u5165\u8f93\u51fa\u5c31\u80fd\u63a7\u5236\u7684\u91cd\u7528\u4ee3\u7801\uff0c\u6240\u4ee5\u5176\u542b\u4e49\u662f\u6700\u5e7f\u6cdb\u800c\u901a\u7528\u7684\u3002\u53ef\u60dc\u73b0\u5b9e\u4e2d\u80fd\u5f88\u7b80\u5355\u4f7f\u7528\u7684\u6a21\u5757\u5e76\u4e0d\u591a\uff0c\u4e3a\u4e86\u80fd\u5904\u7406\u590d\u6742\u7684\u95ee\u9898\uff0c\u4eba\u4eec\u5f00\u53d1\u4e86\u5f88\u591a\u7f16\u7a0b\u7684\u5de5\u5177\uff0c\u5176\u4e2d\u4e00\u4e9b\u4e3a\u4e86\u89e3\u51b3\u7279\u5b9a\u95ee\u9898\uff0c\u6bd4\u5982\u6570\u636e\u5e93\u3001GUI\u3001\u6e38\u620f\uff0c\u90fd\u5f3a\u5316\u4e86\u4e00\u4e9b\u6a21\u5757\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u8ba9\u53ef\u91cd\u7528\u7684\u4ee3\u7801\uff0c\u80fd\u66f4\u7b80\u5355\u7684\u6295\u5165\u4f7f\u7528\uff0c\u800c\u8fd9\u4e9b\u6613\u7528\u6027\u4e0a\u7684\u597d\u5904\uff0c\u90fd\u9700\u8981\u4ed8\u51fa\u9075\u5b88\u4e00\u5b9a\u7684\u89c4\u8303\u7684\u4ee3\u4ef7\u3002<\/p>\n \u8fd9\u4e9b\u80fd\u5728\u7279\u5b9a\u95ee\u9898\u89e3\u51b3\u6846\u67b6\u4e0b\u8fd0\u884c\u7684\u6a21\u5757\uff0c\u5c31\u6210\u4e3a\u4e86\u7ec4\u4ef6<\/strong>\u3002\u867d\u7136\u6a21\u5757\u548c\u7ec4\u4ef6\u672c\u8eab\u90fd\u4e0d\u9700\u8981\u91c7\u7528\u9762\u5411\u5bf9\u8c61\u7684\u6a21\u578b\uff0c\u4f46\u662f\u9762\u5411\u5bf9\u8c61\u4f5c\u4e3a\u7f16\u7a0b\u4e0a\u7684\u4e00\u4e2a\u91cd\u8981\u6982\u5ff5\uff0c\u80fd\u5e2e\u52a9\u4f7f\u7528\u8005\u7406\u89e3\u548c\u64cd\u4f5c\u6a21\u5757\u6216\u8005\u7ec4\u4ef6\uff0c\u5e76\u4e14\u56e0\u4e3a\u5176\u5c01\u88c5\u7ba1\u7406\u6570\u636e\u72b6\u6001\u7684\u7279\u5f81\uff0c\u80fd\u964d\u4f4e\u7f16\u7a0b\u4e0a\u7684\u590d\u6742\u7a0b\u5ea6\uff0c\u66f4\u5bb9\u6613\u5bf9\u4e1a\u52a1\u9886\u57df\u5efa\u6a21\uff0c\u6240\u4ee5\u5f88\u591a\u6a21\u5757\u548c\u7ec4\u4ef6\uff0c\u80cc\u540e\u90fd\u91c7\u7528\u4e86\u9762\u5411\u5bf9\u8c61\u7684\u6982\u5ff5\u6765\u6253\u9020\u5176\u7f16\u7a0b\u63a5\u53e3\u548c\u8868\u73b0\u5f62\u5f0f\u3002<\/p>\n <\/p>\n<\/p>\n \u5e94\u7528\u7cfb\u7edf\uff0c\u7531\u591a\u4e2aModule<\/span>\u7ec4\u6210\uff0c\u7528\u65b9\u6846\u8868\u793a\u3002<\/p>\n \u4e2d\u6587\u4e3a\u6a21\u5757\u3002\u5b83\u7684\u6838\u5fc3\u610f\u4e49\u662f\u5206\u79bb\u804c\u8d23<\/strong>\uff0c\u5c5e\u4e8e\u4ee3\u7801\u7ea7\u6a21\u5757\u5316\u7684\u4ea7\u51fa\u3002<\/p>\n \u6a21\u5757\u662f\u4ece\u4ee3\u7801\u903b\u8f91<\/strong><\/span>\u7684\u89d2\u5ea6<\/strong><\/span>\u8fdb\u884c\u5212\u5206\u7684\uff1b\u65b9\u4fbf\u4ee3\u7801\u5206\u5c42\u5f00\u53d1<\/span><\/strong>\uff0c\u4fdd\u8bc1\u6bcf\u4e2a\u529f\u80fd\u6a21\u5757\u7684\u804c\u80fd\u5355\u4e00\u3002<\/p>\n \u672c\u8eab\u662f\u4e00\u7ec4\u5177\u6709\u4e00\u5b9a\u5185\u805a\u6027\u4ee3\u7801\u7684\u7ec4\u5408<\/strong><\/span>\uff0c\u804c\u8d23\u660e\u786e<\/strong><\/span>\u3002\u5bf9\u5916\u7684\u63a5\u53e3\u53ef\u4ee5\u662f\u677e\u6563\u7684\uff0c\u4e5f\u53ef\u4ee5\u662f\u96c6\u4e2d\u7684\u3002<\/p>\n SEI\u7684\u5b9a\u4e49\u5982\u4e0b:<\/p>\n An implementation unit of software that provides a coherent set of responsibilities.<\/p>\n \u5b83\u4ee5\u95ee\u9898\u5206\u89e3\u7684\u5f62\u5f0f\uff0c\u6765\u89e3\u51b3\u8f6f\u4ef6\u8bbe\u8ba1\u95ee\u9898\u3002\u5b83\u66f4\u5f3a\u8c03\u4e00\u4e2a\u5185\u805a\u7684\u6982\u5ff5\uff0c\u5f62\u5f0f\u4e0a\u53ef\u4ee5\u662fJava\u4e2d\u7684\u5305\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2a\u6e90\u4ee3\u7801\u76ee\u5f55\u3002<\/p>\n \u4e00\u4e2aModule\u662f\u7531\u4e00\u7ec4Component\u6784\u6210\uff0c\u7528\u6b63\u65b9\u4f53\u8868\u793a\u3002<\/p>\n<\/p>\n \u4e2d\u6587\u79f0\u4e3a\u7ec4\u4ef6\uff0c\u6216\u8005\u6784\u4ef6\u3002<\/p>\n \u7ec4\u4ef6\u662f\u7a0b\u5e8f\u8bbe\u8ba1\u89d2\u5ea6\u62bd\u8c61\u51fa\u7684\u53ef\u590d\u7528<\/span><\/strong>\u7684\u5355\u5143\uff0c\u800c\u4e14\u5927\u591a\u6570\u65f6\u5019\u662f\u7ad9\u5728\u6280\u672f\u89c6\u89d2\u505a\u7684\u62bd\u8c61\u3002<\/p>\n \u4e00\u4e2a\u6a21\u5757\u53ef\u80fd\u6709\u591a\u4e2a\u7ec4\u4ef6\uff0c\u4e00\u4e2a\u7ec4\u4ef6\u4e5f\u53ef\u80fd\u88ab\u591a\u4e2a\u6a21\u5757\u4f7f\u7528\u3002<\/p>\n \u7ec4\u4ef6\u53ef\u4ee5\u662f\u4e00\u4e2aSDK\u3001\u4e00\u4e2a\u5de5\u5177\u5305\u3001\u4e00\u4e2a\u65b9\u6cd5\u3002<\/p>\n \u7ec4\u4ef6\u4f7f\u7528\u975e\u5e38\u6bd4\u8f83\u5e7f\u6cdb\uff0c\u5b83\u7684\u6838\u5fc3\u610f\u4e49\u5728\u4e8e\u590d\u7528<\/strong>\uff0c\u76f8\u5bf9\u6a21\u5757\uff0c\u5bf9\u4e8e\u4f9d\u8d56\u6027\u6709\u66f4\u9ad8\u7684\u8981\u6c42\u3002<\/p>\n \u8868\u793a\u4e00\u4e2a\u53ef\u4ee5\u72ec\u7acb\u63d0\u4f9b\u67d0\u65b9\u9762\u529f\u80fd\u7684\u7269\u4ef6\uff0c\u7528UML\u7684\u7ec4\u4ef6\u56fe\u8868\u793a\u3002<\/p>\n<\/p>\n \u5e94\u7528\u7a0b\u5e8f\u3001\u6a21\u5757\u3001\u7ec4\u7ec7\uff0c\u90fd\u662f\u529f\u80fd\u7684\u7ec4\u7ec7\u5f62\u5f0f\uff0c<\/p>\n Package\u662f\u4e00\u79cd\u76ee\u6807\u7cfb\u7edf\u6587\u4ef6<\/span><\/strong>\u7684\u7ec4\u7ec7\u5f62\u5f0f\uff0c\u548c\u7c92\u5ea6\u4e0d\u662f\u4e00\u4e2a\u7ef4\u5ea6\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e00\u4e2aComponent\u53ef\u4ee5\u5305\u542b\u591a\u4e2aPackage\uff0c\u4e00\u4e2aPackage\u4e5f\u53ef\u4ee5\u5305\u542b\u591a\u4e2aComponent<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"[\u67b6\u6784\u4e4b\u8def-216]- \u67b6\u6784 - \u6982\u5ff5\u67b6\u6784 - \u6a21\u5757\uff08Module\uff09\u3001\u7ec4\u4ef6\uff08Component\uff09\u3001\u5305\uff08Package\uff09\u3001\u5bf9\u8c61\u3001\u51fd\u6570\u7684\u533a\u522b\u5728\u8f6f\u4ef6\u67b6\u6784\u4e2d\uff0c\u4e00...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8544"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8544"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8544\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}1. \u8ffd\u6eaf\u5386\u53f2<\/h2>\n
1.1 \u51fd\u6570\u7684\u51fa\u73b0<\/span><\/strong><\/h3>\n
1.2 \u5355\u51fd\u6570\u6a21\u5757\u7684\u51fa\u73b0<\/h3>\n
1.3 \u5de5\u5177\u6a21\u5757\u7684\u51fa\u73b0<\/h3>\n
1.4 \u5bf9\u8c61\u7684\u51fa\u73b0<\/h3>\n
1.5 \u7ec4\u4ef6\u7684\u51fa\u73b0<\/h3>\n
\u5e94\u7528\uff08Application\uff09\uff1a<\/h2>\n
\u6a21\u5757\uff08Module\uff09\uff1a<\/h2>\n
\u7ec4\u4ef6\uff08Component\uff09\uff1a<\/h2>\n
\u5305\uff08Package)\uff1a<\/h2>\n