{"id":194,"date":"2007-07-27T16:47:46","date_gmt":"2007-07-27T08:47:46","guid":{"rendered":"https:\/\/lifeparty.idv.tw\/blog\/archives\/194"},"modified":"2007-07-29T16:04:54","modified_gmt":"2007-07-29T08:04:54","slug":"%e7%a8%8b%e5%bc%8f%e7%a2%bc%e7%9a%84%e7%b5%90%e6%a7%8b%e3%80%81%e8%bf%b4%e5%9c%88%e8%88%87%e8%99%95%e7%90%86","status":"publish","type":"post","link":"https:\/\/lifeparty.idv.tw\/blog\/archives\/194","title":{"rendered":"\u7a0b\u5f0f\u78bc\u7684\u7d50\u69cb\u3001\u8ff4\u5708\u8207\u8655\u7406"},"content":{"rendered":"<p>\u8edf\u9ad4\u8a2d\u8a08\u662f\u4e00\u7a2e\u6c42\u53d6\u5747\u8861\u7684\u53d6\u6368\uff0c\u800c\u53d6\u6368\u7684\u95dc\u9375\u8996<a href=\"http:\/\/en.wikipedia.org\/wiki\/Computer_software\">\u8edf\u9ad4<\/a>\u6b32\u89e3\u6c7a\u7684\u554f\u984c\u800c\u5b9a\u3002\u6b63\u5982\u540c\u4eba\u5728\u300a<a href=\"https:\/\/lifeparty.idv.tw\/blog\/archives\/175\">\u8edf\u9ad4\u958b\u767c\u662f\u5de5\u85dd\u9084\u662f\u5de5\u7a0b<\/a>\u300b\u4e2d\u6240\u63d0\u5230\u7684\uff0c\u8edf\u9ad4\u958b\u767c\u7684\u672c\u9ad4\u4e26\u4e0d\u5728\u5de5\u85dd\uff0c\u4e5f\u4e0d\u5728\u5de5\u7a0b\uff0c\u800c\u662f\u4e00\u7a2e<a href=\"https:\/\/lifeparty.idv.tw\/blog\/archives\/87\">\u554f\u984c\u89e3\u6c7a\u7684\u904e\u7a0b<\/a>\u3002\u4f9d\u6b64\u89c0\u9ede\u4f86\u958b\u767c\u8edf\u9ad4\uff0c\u6211\u5011\u4e00\u958b\u59cb\u6703\u7528\u6700\u7c21\u55ae\u4e14\u76f4\u89ba\u7684\u7de8\u7a0b\u65b9\u5f0f\u628a\u8edf\u9ad4\u7684\u529f\u80fd\u505a\u51fa\u4f86\uff0c\u7136\u5f8c\u518d\u96a8\u8457\u9700\u6c42\u7684\u6539\u8b8a\uff0c\u9010\u6b65\u6f14\u9032\u7a0b\u5f0f\u78bc\u53ca\u8a2d\u8a08\u67b6\u69cb\u3002\u7528<a href=\"http:\/\/en.wikipedia.org\/wiki\/Complexity\">\u8907\u96dc\u6027<\/a>\u53ca<a href=\"http:\/\/en.wikipedia.org\/wiki\/Complex_adaptive_system\">\u8907\u96dc\u9069\u61c9\u6027\u7cfb\u7d71<\/a>\u7684\u6982\u5ff5\uff0c\u627e\u5230<a href=\"http:\/\/en.wikipedia.org\/wiki\/Edge_of_chaos\">\u6df7\u6c8c\u908a\u7de3<\/a>\uff0c<a href=\"http:\/\/en.wikipedia.org\/wiki\/Self_organization\">\u7d44\u7e54\u7cfb\u7d71<\/a>\u8b93\u8907\u96dc\u884c\u70ba\u81ea\u7136\u5f62\u6210\u537b\u4e0d\u81f4\u6df7\u4e82\u800c\u5c0e\u81f4\u5931\u63a7\uff0c\u5982\u6b64\u6f14\u5316\u6240\u7522\u751f\u7684\u7cfb\u7d71\u5c07\u5177\u5099\u7a69\u5b9a\u8207\u5f48\u6027\u3002<\/p>\n<p>\u9019\u7a2e\u554f\u984c\u89e3\u6c7a\u7684\u904e\u7a0b\uff0c\u5982\u540c\u300c\u5e96\u4e01\u89e3\u725b\u300d\u4e00\u822c\uff0c\u5faa\u8457\u554f\u984c\u8108\u7d61\u800c\u4e88\u4ee5\u652f\u89e3\uff0c\u800c\u4e0d\u662f\u7528\u883b\u529b\u5927\u5200\u4e82\u780d\u3002\u7136\u800c\uff0c\u8edf\u9ad4\u958b\u767c\u8981\u89e3\u6c7a\u7684\u554f\u984c\u7562\u7adf\u4e0d\u5982\u89e3\u725b\u90a3\u822c\u986f\u800c\u6613\u898b\u3002\u4e00\u958b\u59cb\uff0c\u6211\u5011\u6839\u672c\u4e0d\u77e5\u9053\u908a\u7de3\u5728\u90a3\u88e1\uff0c\u7b49\u5230\u6211\u5011\u8de8\u8d8a\u4e86\u908a\u7de3\uff0c\u5230\u9054\u4e86\u6975\u5ea6\u6df7\u4e82\u7684\u6df7\u6c8c\u6642\uff0c\u554f\u984c\u53c8\u96e3\u4ee5\u638c\u63a7\u4e86\u3002\u6240\u4ee5\uff0c\u5728\u8edf\u9ad4\u958b\u767c\u7684\u904e\u7a0b\u7576\u4e2d\uff0c\u6211\u5011\u5fc5\u9808\u80fd\u5920\u5bdf\u89ba\u908a\u7de3\u6240\u5728\uff0c\u904b\u7528<a href=\"http:\/\/en.wikipedia.org\/wiki\/Test-driven_development\">\u6e2c\u8a66\u5148\u884c<\/a>\u7684\u5be6\u52d9\uff0c\u6211\u5011\u53ef\u4ee5\u8b93\u7a0b\u5f0f\u805a\u7126\u65bc\u6b32\u89e3\u6c7a\u7684\u554f\u984c\u4e0a\uff0c\u4e0d\u81f4\u767c\u751f\u7a0b\u5f0f\u78bc\u767c\u751f\u904e\u5ea6\u6df7\u4e82\u800c\u5c0e\u81f4\u7121\u6cd5\u638c\u63a7\u7684\u60c5\u6cc1\u3002<\/p>\n<p>\u4e00\u65e6\u9700\u6c42\u4e0d\u65b7\u589e\u52a0\uff0c\u5728\u73fe\u6709\u8a2d\u8a08\u7121\u6cd5\u8ca0\u8377\u8edf\u9ad4\u9700\u6c42\u8b8a\u52d5\u6642\uff0c\u53ef\u4ee5\u900f\u904e<a href=\"http:\/\/en.wikipedia.org\/wiki\/Code_refactoring\">\u7a0b\u5f0f\u78bc\u91cd\u69cb<\/a>\u4f86\u589e\u52a0\u7a7a\u9593\u4ee5\u5bb9\u7d0d\u65b0\u529f\u80fd\u3002\u91cd\u69cb\u4e26\u4e0d\u662f\u589e\u52a0\u65b0\u529f\u80fd\uff0c\u800c\u662f\u5728\u4e0d\u6539\u8b8a\u529f\u80fd\u7684\u60c5\u5f62\u4e0b\u6539\u8b8a\u5176\u7a0b\u5f0f\u7d50\u69cb\uff0c\u6e2c\u8a66\u7a0b\u5f0f\u5728\u6b64\u626e\u6f14\u4e0d\u81f4\u4f7f\u4fee\u6539\u7d50\u69cb\u9020\u6210\u5c0d\u7a0b\u5f0f\u529f\u80fd\u7684\u5f71\u97ff\u4e4b\u89d2\u8272\uff0c\u800c\u80fd\u4fdd\u6301\u7a0b\u5f0f\u78bc\u7684\u7d50\u69cb\u4e0d\u81f4\u56e0\u7d0a\u4e82\u800c\u8b8a\u58de\u3002<br \/>\n<!--more--><\/p>\n<p>\u5982\u6b64\uff0c\u900f\u904e\u91cd\u69cb\uff0c\u6211\u5011\u5c07\u7a0b\u5f0f\u78bc\u7d44\u7e54\u8d77\u4f86\u5230\u6df7\u6c8c\u908a\u7de3\uff0c\u540c\u6642\u4fc3\u6210\u7a0b\u5f0f\u7684\u7c21\u660e\u4ee5\u5be6\u73fe\u512a\u7f8e\uff0c\u8b93\u7cfb\u7d71\u66f4\u5bb9\u6613\u9069\u61c9\u8b8a\u5316\u3002\u628a\u7a0b\u5f0f\u78bc\u4e4b\u4e2d\uff0c\u53ef\u4ee5\u7c21\u5316\u4e14\u4e0d\u640d\u529f\u80fd\u7684\u90e8\u5206\u4e88\u4ee5\u7c21\u5316\u3002\u4f8b\u5982\uff0c\u67d0\u4e00\u6bb5\u7a0b\u5f0f\u78bc\uff0c\u5982\u679c\u5728 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Class_%28computer_science%29\">class<\/a> \u4e2d\uff0c\u4e00\u518d\u5730\u91cd\u8986\u51fa\u73fe\uff0c\u61c9\u63d0\u53d6\u51fa\u4f86\u800c\u6210\u70ba <a href=\"http:\/\/en.wikipedia.org\/wiki\/Method_%28computer_science%29\">method<\/a>\uff1b\u82e5\u5728\u591a\u500b class \u91cd\u8986\u51fa\u73fe\uff0c\u5247\u53ef\u80fd\u9700\u8981\u8003\u616e\u63d0\u53d6\u51fa\u4f86\u800c\u6210\u70ba\u5176\u5b83 class \u7684 method\uff0c\u9019\u6a23\u53ef\u4ee5\u5927\u5e45\u964d\u4f4e\u91cd\u8986\u7a0b\u5f0f\u78bc\u7684\u73fe\u8c61\uff0c\u4ee5\u589e\u9032\u7a0b\u5f0f\u78bc\u7684\u7d50\u69cb\u3002\u800c\u5728\u63d0\u53d6\u91cd\u8986\u7a0b\u5f0f\u78bc\u7684\u904e\u7a0b\u4e2d\uff0c\u4e5f\u5f88\u5bb9\u6613\u767c\u73fe\u539f\u4f86\u672a\u767c\u73fe\u7684\u95dc\u9375\u62bd\u8c61\u6982\u5ff5\uff0c\u4f7f\u5f97\u7a0b\u5f0f\u78bc\u7684\u53ef\u8b80\u6027\u3001\u5f48\u6027\u6216\u7a69\u5b9a\u6027\u53ef\u4ee5\u5927\u5e45\u589e\u52a0\u3002<\/p>\n<p>\u7136\u800c\uff0c\u5c0d\u65bc\u7a0b\u5f0f\u78bc\u4e2d\u7684\u8ff4\u5708\u8655\u7406\u8981\u62bd\u53d6\u51fa\u91cd\u8986\u7684\u7a0b\u5f0f\u78bc\uff0c\u554f\u984c\u4f3c\u4e4e\u6703\u8907\u96dc\u4e9b\uff0c\u4f8b\u5982\u4e0b\u9762\u9019\u4e00\u6bb5\u7a0b\u5f0f\u78bc\uff1a<br \/>\n<coolcode lang=\"java\" linenum=\"off\"><br \/>\nfor (i = 0; i < myArray.length; i++) {\n    processor.process(myArray[i]);\n}\n...\nIterator iterator = myList.iterator();\nwhile (iterator.hasNext()) {\n    processor.process(iterator.next());\n}\n<\/coolcode><br \/>\n\u5f9e\u9019\u6bb5\u7684\u7a0b\u5f0f\u78bc\u6211\u5011\u767c\u73fe\uff0c\u56e0\u70ba\u5b58\u653e\u8cc7\u6599\u9805\u76ee\u7684\u805a\u5408\u9ad4\uff08\u8cc7\u6599\u578b\u614b\u70ba\u9663\u5217\u6216\u5be6\u4f5c\u884d\u751f\u81ea Collection \u7684 class\uff0c\u5982 List\uff09\u7684\u5dee\u7570\uff0c\u5c0d\u65bc\u5982\u4f55\u53d6\u5f97\u4e0b\u4e00\u7b46\u8cc7\u6599\u9805\u76ee\u7684\u65b9\u5f0f\u4e5f\u5c31\u4e0d\u540c\uff0c\u4f7f\u6211\u5011\u5fc5\u9808\u64b0\u5beb\u4e0d\u540c\u7684\u7a0b\u5f0f\u78bc\u4f86\u8655\u7406\u8ff4\u5708\uff0c\u4f46\u5b83\u5011\u672c\u8cea\u4e0a\u537b\u662f\u505a\u76f8\u540c\u4e00\u4ef6\u4e8b\u5440\u3002\u6240\u4ee5\uff0c\u5728\u7a0b\u5f0f\u78bc\u61c9\u5118\u91cf\u907f\u514d\u91cd\u8986\u7684\u89d2\u5ea6\u4f86\u770b\uff0c\u4e0a\u4e00\u6bb5\u7a0b\u5f0f\u78bc\u4f3c\u4e4e\u986f\u9732\u8457\u4e00\u4e9b\u7f8e\u4e2d\u4e0d\u8db3\u7684\u5730\u65b9\u3002<\/p>\n<p>\u9019\u554f\u984c\u4e0d\u96e3\u89e3\u6c7a\uff0c\u53ea\u8981\u70ba\u9663\u5217\u5beb\u4e00\u500b Iterator\u3002\u9019\u6a23\uff0c\u5373\u4f7f\u8cc7\u6599\u9805\u76ee\u805a\u5408\u9ad4\u4e26\u4e0d\u4e00\u6a23\uff0c\u6211\u5011\u9084\u662f\u53ef\u4ee5\u5229\u7528 Iterator\uff0c\u5c07\u8cc7\u6599\u9805\u76ee\u805a\u5408\u9ad4\u8b80\u53d6\u4e0b\u4e00\u7b46\u8cc7\u6599\u9805\u76ee\u7684\u5be6\u4f5c\u7d30\u7bc0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Information_hiding\">\u5c01\u88dd<\/a>\u8d77\u4f86\u3002\u9019\u6a23\uff0c\u5c31\u53ef\u4ee5\u7528\u76f8\u540c\u7684\u65b9\u5f0f\u4f86\u8655\u7406\u8ff4\u5708\u63a7\u5236\u3002\u5982\u4e0b\u6bb5\u7a0b\u5f0f\u6240\u793a\uff1a<br \/>\n<coolcode lang=\"java\" linenum=\"off\"><br \/>\npublic class ArrayIterator implements Iterator {<\/p>\n<p>    private Object array;<\/p>\n<p>    private int index = 0;<\/p>\n<p>    private static final String<br \/>\n        ARRAY_NOT_SUPPORT_REMOVE_OPERATION = &#8230;<\/p>\n<p>    protected ArrayIterator(Object array) {<br \/>\n        super();<br \/>\n        this.array = array;<br \/>\n    }<\/p>\n<p>    public static ArrayIterator<br \/>\n        getIterator(Object array) {<br \/>\n        ArrayIterator itr =<br \/>\n            new ArrayIterator(array);<\/p>\n<p>        itr.array = array;<\/p>\n<p>        return itr;<br \/>\n    }<\/p>\n<p>    public boolean hasNext() {<br \/>\n        boolean result = false;<\/p>\n<p>        if (index < Array.getLength(array)) {\n            result = true;\n        }\n\n        return result;\n    }\n\n    public Object next() {\n        Object obj = Array.get(array, index);\n\n        index++;\n\n        return obj;\n    }\n\n    public void remove() {\n        throw new \n            UnsupportedOperationException(\n            ARRAY_NOT_SUPPORT_REMOVE_OPERATION);\n    }\n\n}\n...\npublic void process(Iterator iterator) {\n    while (iterator.hasNext()) {\n        processor.process(iterator.next());\n    }\n}\nprocess(ArrayIterator.getIterator(myArray));\n<\/coolcode><br \/>\n\u4e0d\u904e\uff0c\u7a0b\u5f0f\u78bc\u4e2d\u7684\u8ff4\u5708\u8655\u7406\u5305\u62ec\u4e86\u8ff4\u5708\u63a7\u5236\u8207\u8ff4\u5708\u5167\u7684\u8cc7\u6599\u8655\u7406\uff0c\u5373\u4f7f\u8ff4\u5708\u63a7\u5236\u7684\u554f\u984c\u89e3\u6c7a\u4e86\uff0c\u4f46\u5982\u679c\u8ff4\u5708\u5167\u7684\u8655\u7406\u4e0d\u4e00\u6a23\uff0c\u55ae\u9760 Iterator \u9084\u662f\u4e0d\u5920\u7684\u3002\u5982\u540c\u4e0b\u9762\u9019\u4e00\u6bb5\u7a0b\u5f0f\uff1a<br \/>\n<coolcode lang=\"java\" linenum=\"off\"><br \/>\n&#8230;<br \/>\n    Result1 rslt1 = null;<br \/>\n    Iterator iterator = myList.iterator();<br \/>\n    while (iterator.hasNext()) {<br \/>\n        obj = iterator.next();<br \/>\n        processOp1(obj, rslt1);<br \/>\n    }<br \/>\n    Result2 rslt2 = null;<br \/>\n    Iterator iterator = myList.iterator();<br \/>\n    while (iterator.hasNext()) {<br \/>\n        obj = iterator.next();<br \/>\n        processOp2(obj, rslt2);<br \/>\n    }<br \/>\n    &#8230;<br \/>\n}<br \/>\n<\/coolcode><br \/>\n\u5f9e\u9019\u4e00\u6bb5\u7a0b\u5f0f\u78bc\u6211\u5011\u6703\u767c\u73fe\uff0c\u8ff4\u5708\u5167\u7684\u8655\u7406\u4e26\u4e0d\u76f8\u540c\uff0c\u6240\u4ee5\u4e0d\u80fd\u7528\u4e0a\u9762\u7684\u65b9\u5f0f\u4f86\u7c21\u5316\u7a0b\u5f0f\u78bc\uff0c\u600e\u9ebc\u8fa6\u5462\uff1f\u628a\u4e0d\u4e00\u6a23\u7684\u90e8\u5206\u5c01\u88dd\u8d77\u4f86\u5427\uff0c\u4e5f\u5c31\u662f\u628a\u8ff4\u5708\u5167\u7684\u8655\u7406\u63d0\u53d6\u51fa\u4f86\uff0c\u4e26\u653e\u5728 LoopProcessor \u7684\u62bd\u8c61\u6982\u5ff5\u4e2d\uff1b\u7136\u5f8c\u5c07\u5171\u901a\u7684\u90e8\u5206\uff0c\u5373\u8ff4\u5708\u63a7\u5236\u63d0\u53d6\u81f3 ProcessDirector \u4e2d\uff0c\u6700\u5f8c\u7d50\u679c\u6703\u8b8a\u6210\u9019\u6a23\uff1a<br \/>\n<coolcode lang=\"java\" linenum=\"off\"><br \/>\npublic interface LoopProcessor {<br \/>\n    public void process(Object obj);<br \/>\n}<\/p>\n<p>public class Op1Processor implements LoopProcessor {<br \/>\n    private Result1 result = null;<br \/>\n    public void process(Object obj) {<br \/>\n        &#8230;<br \/>\n        result = &#8230;<br \/>\n    }<\/p>\n<p>    public Result1 getResult() {<br \/>\n        return result;<br \/>\n    }<br \/>\n}<\/p>\n<p>public class Op2Processor implements LoopProcessor {<br \/>\n    private Result2 result = null;<br \/>\n    public void process(Object obj) {<br \/>\n        &#8230;<br \/>\n        result = &#8230;<br \/>\n    }<\/p>\n<p>    public Result2 getResult() {<br \/>\n        return result;<br \/>\n    }<br \/>\n}<\/p>\n<p>public class ProcessDirector {<br \/>\n    public void makeProcess(<br \/>\n        Iterator iterator,<br \/>\n        LoopProcessor proccessor) {<br \/>\n        Object obj;<\/p>\n<p>        while (iterator.hasNext()) {<br \/>\n            obj = iterator.next();<br \/>\n            processor.process(obj);<br \/>\n        }<br \/>\n    }<br \/>\n}<br \/>\n&#8230;<br \/>\nLoopProcessor processor1 = new Op1Processor();<br \/>\nLoopProcessor processor2 = new Op2Processor();<br \/>\nProcessorDirector director =<br \/>\n    new ProcessDirector();<\/p>\n<p>Iterator iterator = myList.iterator();<br \/>\ndirector.makeProcess(<br \/>\n    iterator, processor1);<br \/>\nresult1 = processor1.getResult();<\/p>\n<p>Iterator iterator = myList.iterator();<br \/>\ndirector.makeProcessor(<br \/>\n    iterator, processor2);<br \/>\nresult2 = processor2.getResult();<br \/>\n<\/coolcode><br \/>\n\u5982\u6b64\u4e00\u4f86\uff0cProcessDirector \u8ca0\u8cac\u8ff4\u5708\u63a7\u5236\uff0c\u800c\u5be6\u73fe LoopProcessor \u7684 class \u8ca0\u8cac\u8ff4\u5708\u5167\u7684\u8cc7\u6599\u8655\u7406\uff0c\u547c\u53eb\u8005\u53ea\u8981\u547c\u53eb ProcessDirector \u7684 makeProcess\uff0c\u4e26\u50b3\u5165\u8cc7\u6599\u9805\u76ee\u4e4b\u805a\u5408\u9ad4\u53ca\u8ff4\u5708\u8655\u7406\u7684 LoopProcessor\uff0c\u6700\u5f8c\u518d\u5f9e\u50b3\u5165\u7684 LoopProcessor \u5be6\u4f5c\u53d6\u5f97\u8cc7\u6599\u8655\u7406\u7d50\u679c\u5373\u53ef\uff0c\u7a0b\u5f0f\u78bc\u5c07\u8b8a\u5f97\u66f4\u70ba\u7c21\u6f54\u800c\u6613\u8b80\uff0c\u540c\u6642\u8981\u589e\u52a0\u4e0d\u540c\u65b9\u5f0f\u7684\u8cc7\u6599\u8655\u7406\u4e26\u4e0d\u6703\u5f71\u97ff\u5230\u65e2\u6709\u4e4b\u8cc7\u6599\u8655\u7406\u6216\u8ff4\u5708\u63a7\u5236\u7684\u90e8\u5206\u3002<\/p>\n<p>\u9019\u4fbf\u662f\u61c9\u7528 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Design_Patterns\">GOF<\/a> \u7684 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Builder_pattern\">builder<\/a> \u53ca <a href=\"http:\/\/en.wikipedia.org\/wiki\/Iterator_pattern\">iterator<\/a> design pattern\uff0c\u5c07\u8ff4\u5708\u63a7\u5236\u8207\u8cc7\u6599\u8655\u7406\u7684\u6982\u5ff5\u5340\u9694\u958b\u4f86\uff0c\u8b93\u7a0b\u5f0f\u78bc\u7684\u7d50\u69cb\u66f4\u5177\u6709\u5f48\u6027\u8207\u7a69\u5b9a\u6027\u3002\u628a\u7a0b\u5f0f\u78bc\u7d44\u7e54\u8d77\u4f86\uff0c\u5b83\u5011\u5c07\u81ea\u7136\u5f62\u6210\u4e00\u500b\u5145\u6eff\u9a5a\u5947\u53ca\u5bcc\u6709\u5f48\u6027\u7684\u4e16\u754c\uff0c\u4e26\u70ba\u8edf\u9ad4\u6ce8\u5165\u9bae\u6d3b\u7684\u751f\u547d\u529b\uff0c\u800c\u5728\u6f14\u5316\u904e\u7a0b\u4e2d\uff0c\u6211\u5011\u7528\u53c3\u8207\u8abf\u9069\u53d6\u4ee3\u63a7\u5236\u9810\u6e2c\uff0c\u4e5f\u8b93\u81ea\u5df2\u4e0d\u65b7\u5730\u6210\u9577\u8207\u63a5\u53d7\u6539\u8b8a\uff0c\u6211\u60f3\u9019\u662f\u8edf\u9ad4\u958b\u767c\u6700\u9952\u5bcc\u8da3\u5473\u7684\u904e\u7a0b\u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c07\u8ff4\u5708\u63a7\u5236\u8207\u8cc7\u6599\u8655\u7406\u7684\u6982\u5ff5\u5340\u9694\u958b\u4f86\uff0c\u8b93\u7a0b\u5f0f\u78bc\u7684\u7d50\u69cb\u66f4\u5177\u6709\u5f48\u6027\u8207\u7a69\u5b9a\u6027\u3002\u628a\u7a0b\u5f0f\u78bc\u7d44\u7e54\u8d77\u4f86\uff0c\u5b83\u5011\u5c07\u81ea\u7136\u5f62\u6210\u4e00\u500b\u5145\u6eff\u9a5a\u5947\u53ca\u5bcc\u6709\u5f48\u6027\u7684\u4e16\u754c\uff0c\u4e26\u70ba\u8edf\u9ad4\u6ce8\u5165\u9bae\u6d3b\u7684\u751f\u547d\u529b\uff0c\u800c\u5728\u6f14\u5316\u904e\u7a0b\u4e2d\uff0c\u6211\u5011\u7528\u53c3\u8207\u8abf\u9069\u53d6\u4ee3\u63a7\u5236\u9810\u6e2c\uff0c\u4e5f\u8b93\u81ea\u5df2\u4e0d\u65b7\u5730\u6210\u9577\u8207\u63a5\u53d7\u6539\u8b8a\uff0c\u6211\u60f3\u9019\u662f\u8edf\u9ad4\u958b\u767c\u6700\u9952\u5bcc\u8da3\u5473\u7684\u904e\u7a0b\u5427\u3002 <a href=\"https:\/\/lifeparty.idv.tw\/blog\/archives\/194\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,19,3],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-37","category-19","category-3"],"_links":{"self":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":0,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"wp:attachment":[{"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lifeparty.idv.tw\/blog\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}