{"3410":{"code":"LopwonJson","cid":"3410","image":"http:\/\/www.lopwon.com\/usr\/uploads\/2023\/06\/294071688.jpg","title":"Lopwon Json \u4f7f\u7528\u6587\u6863","permalink":"http:\/\/www.lopwon.com\/lopwon-json.html","date":"2023-06-01","content":"\u7248\u672c\u578b\u53f7\uff1aLopwon Json\u9002\u7528\u7a0b\u5e8f\uff1aTypecho\u76ae\u80a4\u7c7b\u578b\uff1a\u6a21\u677f + \u63d2\u4ef6\u7ec4\u4ef6\u4f5c\u8005\uff1aLopwon\u4f5c\u8005\u535a\u5ba2\uff1aLopwon.com\u53d1\u5e03\u9875\u9762\uff1aLopwon.com\/lopwon-json.html\u5b98\u65b9\u6f14\u793a\uff1aLopwon Json\u6211\u8981\u4f7f\u7528\uff1a\u53c2\u4e0e\u300c\u8bc4\u8bba\u6709\u5956\u300d\u6d3b\u52a8\u514d\u8d39\u83b7\u53d6\u63d2\u4ef6\uff0c\u524d\u5f80\u3002\u7ec4\u4ef6\u8bf4\u660e\u7ec4\u4ef6 Lopwon Json \u7684\u4f5c\u7528\u662f\uff1a\u628a\u4efb\u610f\u6570\u91cf\u7684\u6307\u5b9a\u6587\u7ae0\uff0c\u751f\u6210 Json \u683c\u5f0f\u5185\u5bb9\uff0c\u7edf\u4e00\u8f93\u51fa\u5728\u540c\u4e00\u9875\u9762\uff0c\u53ef\u4ee5\u5728\u535a\u5ba2\u5185\u81ea\u5df1\u8c03\u7528\uff0c\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u7ed9\u5176\u4ed6\u535a\u5ba2\u8c03\u7528\uff0c\u6216\u8005\u9a9a\u4e00\u70b9\uff0c\u53d8\u6210\u81ea\u5df1\u8c03\u7528\u53cb\u4eba\u7684\u535a\u5ba2\u6587\u7ae0\u3002\u529f\u80fd\u7c7b\u4f3c\u4e8e\u4e4b\u524d\u5236\u4f5c\u7684 Lopwon Feed \u63d2\u4ef6\uff0c\u4f46\uff0c\u7ec4\u4ef6 Lopwon Json \u53ef\u4ee5\u8c03\u7528\u4efb\u610f\u6587\u7ae0\uff0c\u800c\u4e0d\u5c40\u9650\u4e8e Feed \u7684\u6700\u65b0 10 \u7bc7\u3002\u63d0\u793a\uff1a\u7ec4\u4ef6 Lopwon Json \u672a\u4f7f\u7528\u7f13\u5b58\u673a\u5236\uff0c\u8fc7\u591a\u7684\u8ba2\u9605\u4f1a\u4f7f\u52a0\u8f7d\u8017\u65f6\u66f4\u957f\u3002\u6ce8\u610f\uff1aLopwon Json \u4e3a\u6709\u5956\u6d3b\u52a8\u7684\u514d\u8d39\u7ec4\u4ef6\uff0c\u8bf7\u52ff\u5546\u7528\uff0c\u8bf7\u52ff\u5206\u53d1\uff0c\u4e14\u4e0d\u5bf9\u4f60\u5728\u4f7f\u7528\u4e2d\u4ea7\u751f\u7684\u4efb\u4f55\u95ee\u9898\u9020\u6210\u7684\u4e0d\u826f\u540e\u679c\uff0c\u627f\u62c5\u8d23\u4efb\u3002\n\u5e94\u7528\u573a\u666f\u7ec4\u4ef6 Lopwon Json \u7531\uff08\u6a21\u677f + \u63d2\u4ef6\uff09\u6784\u6210\uff1a1. \u6a21\u677f Lopwon_Json.php \u4f5c\u7528\uff0c\u628a\u4efb\u610f\u6570\u91cf\u7684\u6307\u5b9a\u6587\u7ae0\u751f\u6210 Json \u683c\u5f0f\u5185\u5bb9\uff0c\u7edf\u4e00\u8f93\u51fa\u5728\u540c\u4e00\u9875\u9762\uff0c\u5982 http:\/\/snapic.cn\/demo\/json.html\n\n2. \u63d2\u4ef6 Lopwon Json \u4f5c\u7528\uff0c\u89e3\u6790\u6a21\u677f Lopwon_Json.php \u751f\u6210\u7684 Json \u9875\u9762\u5185\u5bb9\u5e76\u8f93\u51fa\uff0c\u53ef\u81ea\u5b9a\u4e49\u7ed3\u6784\u548c\u6837\u5f0f\uff0c\u5982 http:\/\/snapic.cn\/demo\/lopwon-json.html\n\u573a\u666f\u4e00\uff1a\u8c03\u7528\u591a\u4f4d\u53cb\u4eba\u535a\u5ba2\u7684\u4efb\u610f\u6587\u7ae0\u53cb\u4eba\u4f7f\u7528\u6a21\u677f Lopwon_Json.php \u751f\u6210\u6307\u5b9a\u7684\u4efb\u610f\u6587\u7ae0\u591a\u7bc7\uff08\u5982\uff1a7 \u7bc7\uff09\uff0c\u8f93\u51fa\u5728 json.html \u9875\u9762\uff0c\u81ea\u5df1\u4f7f\u7528\u63d2\u4ef6 Lopwon Json \u89e3\u6790\u8be5\u9875\u9762\uff0c\u5e76\u80fd\u5728\u63d2\u4ef6\u540e\u53f0\uff0c\u52fe\u9009\u54ea\u4e9b\u6587\u7ae0\uff08\u5982\uff1a3 \u7bc7\uff09\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u535a\u5ba2\u9875\u9762\u663e\u793a\u3002\n\n\u4e0d\u5c40\u9650\u4e00\u4f4d\u53cb\u4eba\uff0c\u53ef\u4ee5\u540c\u65f6\u8c03\u7528\u591a\u4f4d\u53cb\u4eba\u6388\u6743\u663e\u793a\u7684\u6587\u7ae0\u3002\n\u573a\u666f\u4e8c\uff1a\u628a\u81ea\u5df1\u535a\u5ba2\u7684\u6587\u7ae0\u63d0\u4f9b\u7ed9\u53cb\u4eba\u8c03\u7528\u4e5f\u5c31\u662f\u573a\u666f\u4e00\u7684\u9006\u5411\u64cd\u4f5c\u3002\n\u573a\u666f\u4e09\uff1a\u628a\u81ea\u5df1\u535a\u5ba2\u7684\u6587\u7ae0\u63d0\u4f9b\u7ed9\u81ea\u5df1\u8c03\u7528\u4e0e\u573a\u666f\u4e00\u76f8\u4f3c\uff0c\u81ea\u5df1\u540c\u65f6\u4f7f\u7528\uff08\u6a21\u677f + \u63d2\u4ef6\uff09\u5b8c\u6210\u8f93\u51fa Json \u9875\u9762\u548c\u89e3\u6790\u9875\u9762\u7684\u8fc7\u7a0b\u3002\n\u573a\u666f\u56db\uff1a\u5982\u679c\u6dfb\u52a0\u901a\u8fc7\u8bc6\u522b\u6765\u6e90\u5e76\u8bb0\u5f55\u70b9\u51fb\u6570\u7684\u529f\u80fd\uff0c\u5219\u53ef\u4ee5\u4f5c\u4e3a\u8425\u9500\u9875\u9762\u4f7f\u7528\uff0c\u4ee5\u70b9\u51fb\u7387\u83b7\u53d6\u5e7f\u544a\u4e3b\u7684\u63a8\u5e7f\u4f63\u91d1\u3002\u7ec4\u4ef6\u66f4\u65b02023\u5e7408\u670818\u65e5 \u53d1\u5e03 Lopwon Json v1.1 \u4fee\u6b63\u5df2\u77e5\u95ee\u9898\u30022023\u5e7406\u670804\u65e5 \u53d1\u5e03 Lopwon Json\n\u4f7f\u7528\u65b9\u6cd5\u4e00\u3001\u6a21\u677f Lopwon_Json.phpA \u90e8\u7f72\u6587\u4ef61. \u5c06\u538b\u7f29\u5305\u91cc\u7684\u6587\u4ef6 Lopwon_Json.php \u4e0a\u4f20\u81f3\u76ee\u5f55 usr\/themes \u4e2d\u7684\u4f60\u7684\u4e3b\u9898\u6587\u4ef6\u5939\u91cc\u3002\u5982\uff1a\u4f60\u7684\u4e3b\u9898\u6587\u4ef6\u5939\u662f default\uff0c\u90a3\u4e48\u5c31\u4e0a\u4f20\u81f3 usr\/themes\/default \u91cc\u3002\nB \u914d\u7f6e\u9875\u9762\uff08\u56fe\u793a\uff09\u540e\u53f0\u300b\u7ba1\u7406\u300b\u72ec\u7acb\u9875\u9762\u300b\u65b0\u589e\uff0c\u65b0\u5efa\u72ec\u7acb\u9875\u9762\uff0c\u9664\u4ee5\u4e0b\u63d0\u5230\u7684\u4e8b\u9879\u5916\uff0c\u5176\u4f59\u6b63\u5e38\u64cd\u4f5c\u5373\u53ef\u30021. \u6b64\u7f16\u8f91\u9875\u9762\u53f3\u4fa7\u7684\u201c\u81ea\u5b9a\u4e49\u6a21\u677f\u201d\u91cc\uff0c\u8bf7\u9009\u62e9\u201cLopwon Json\u201d\u3002\n\n2. \u65b0\u589e\u81ea\u5b9a\u4e49\u5b57\u6bb5\uff08\u5fc5\u9009\u9879\uff09\uff0c\u5b57\u6bb5\u540d\u79f0\u586b\u5165 jsonCid \u4e71\u586b\u65e0\u6548\uff0c\u5b57\u6bb5\u503c\u586b\u5165\u9700\u8981\u751f\u6210 Json \u683c\u5f0f\u5185\u5bb9\u7684\u6587\u7ae0 cid \u591a\u4e2a\u4ee5\u534a\u89d2\u9017\u53f7\u9694\u5f00\u3002\n\n3. \u65b0\u5efa\u81ea\u5b9a\u4e49\u5b57\u6bb5\uff08\u53ef\u9009\u9879\uff09\uff0c\u5b57\u6bb5\u540d\u79f0\u586b\u5165 jsonImg \u4e71\u586b\u65e0\u6548\uff0c\u5b57\u6bb5\u503c\u586b\u5165\u56fe\u7247\u94fe\u63a5\uff0c\u7528\u4e8e\u6587\u7ae0\u4e2d\u6ca1\u6709\u56fe\u7247\u65f6\uff0c\u4f5c\u4e3a\u9ed8\u8ba4\u56fe\u7247\u8c03\u7528\u3002\n\n4. \u6b64\u7f16\u8f91\u9875\u9762\u53f3\u4fa7\u7684\u201c\u9ad8\u7ea7\u9009\u9879\u201d\uff0c\u5728\u201c\u516c\u5f00\u5ea6\u201d\u9009\u62e9\u201c\u9690\u85cf\u201d\u540e\uff0c\u53ef\u5c06\u6b64\u72ec\u7acb\u9875\u9762\u7684\u6807\u9898\u4e0d\u5c55\u793a\u5728\u67d0\u4e9b\u4e3b\u9898\u7684\u5206\u7c7b\u83dc\u5355\u91cc\u3002\n\u4e8c\u3001\u63d2\u4ef6 Lopwon JsonA \u90e8\u7f72\u63d2\u4ef61. \u5c06\u538b\u7f29\u5305\u91cc\u7684\u6587\u4ef6\u5939 LopwonJson \u53ca\u5176\u5185\u90e8\u7684\u6240\u6709\u6587\u4ef6\uff0c\u4e0a\u4f20\u81f3\u76ee\u5f55 usr\/plugins \u4e2d\u3002\n\n2. \u540e\u53f0\u300b\u63a7\u5236\u53f0\u300b\u63d2\u4ef6\uff0c\u627e\u5230 Lopwon Json \u5e76\u542f\u7528\u3002\nB \u914d\u7f6e\u63d2\u4ef6\uff08\u56fe\u793a\uff09\u540e\u53f0\u300b\u63a7\u5236\u53f0\u300b\u63d2\u4ef6\uff0c\u627e\u5230 Lopwon Json \u5e76\u8bbe\u7f6e\uff0c\u4f9d\u559c\u597d\u8bbe\u7f6e\u5373\u53ef\u3002C \u8c03\u7528\u63d2\u4ef6\u5728\u6307\u5b9a\u9875\u9762\u8c03\u7528\u63d2\u4ef6\u89e3\u6790\u7684\u6587\u7ae0\u30021. \u6253\u5f00\u4e3b\u9898\u6587\u7ae0\u6587\u4ef6\uff08\u5982\uff1apost.php\uff09\uff0c\u5728\u5408\u9002\u4f4d\u7f6e\uff08\u5982\uff1a\u6587\u672b\uff09\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a\n\n <?php if ($this->cid == '\u6587\u7ae0cid\u7f16\u7801') { Typecho_Plugin::factory('Lopwon_Json')->Lopwon(); } ?>\n\n2. \u8bf7\u628a\u4ee5\u4e0a\u4ee3\u7801\u4e2d\uff08\u6587\u7ae0cid\u7f16\u7801\uff09\u66ff\u6362\u4e3a\u4f60\u8981\u663e\u793a\u63d2\u4ef6\u89e3\u6790\u540e\u7684\u6587\u7ae0\u7684\u9875\u9762 cid\nD \u624b\u6b20\u8865\u6551\u5f53\u4f60\u5173\u6ce8\u8fd9\u6bb5\u6587\u6863\uff0c\u8bf4\u660e\u4f60\u771f\u7684\u6ca1\u542c\u529d\uff1a1. \u6253\u5f00\u6570\u636e\u5e93\u540e\u7f00\u4e3a _options \u7684\u8868\uff08\u5982\uff1atypecho_options\uff09\u3002\n\n2. \u627e\u5230\u5217\u540d name \u4e3a plugin:LopwonJson \u7684\u884c\u6570\u636e\uff0c\u6309\u4ee5\u4e0b\u65b9\u5f0f\u4fee\u6539\u5bf9\u5e94\u5217\u540d\u4e3a value \u7684\u503c\u3002\n\n3. \u641c\u7d22 jsonNum \u5c06\u5176\u540e\u7b2c\u4e00\u5bf9\u53cc\u5f15\u53f7\u5185\u7684\u6570\u503c\uff0c\u6539\u4e3a\u624b\u6b20\u524d\u7684\u6570\u503c\uff0c\u63d0\u4ea4\u4fee\u6539\u6570\u636e\u5373\u53ef\u3002\nE \u907f\u514d\u624b\u6b20\u9664\u4e86\u7559\u610f\u63d2\u4ef6\u91cc\u7684\u63d0\u793a\u5916\uff0c\u8fd8\u53ef\u4ee5\u81ea\u5df1\u52a8\u624b\uff0c\u901a\u8fc7\u65b0\u589e\u9a8c\u8bc1\u65b9\u6cd5\uff0c\u8fbe\u5230\u9650\u5236\u8f93\u5165\u5c0f\u4e8e\u5f53\u524d\uff08\u6570\u91cf\uff09\u503c\u7684\u76ee\u7684\u3002\u7531\u4e8e\u4f5c\u8005\u80fd\u529b\u6240\u9650\uff0c\u4e5f\u53ea\u80fd\u4f7f\u7528\u4ee5\u4e0b\u4fee\u6539\u5b9e\u73b0\u4e86\uff1a1. \u6253\u5f00\u63d2\u4ef6 Lopwon Json \u7684\u6587\u4ef6 Plugin.php \u628a\u7b2c 87 \u884c\u7684\u6ce8\u91ca\u89e3\u9664\uff0c\u628a\u7b2c 88 \u884c\u6ce8\u91ca\u6389\uff08\u4e5f\u5c31\u662f\u628a\u7b2c 87 \u884c\u524d\u7684\u4e24\u4e2a\u659c\u6760\u79fb\u5230\u7b2c 88 \u884c\u524d\uff09\u3002\n\n2. \u6253\u5f00\u6587\u4ef6 var\/Typecho\/Validate.php \u5728\u9002\u5f53\u4f4d\u7f6e\uff08\u6bd4\u5982\uff1a\u7b2c 58 \u884c\uff09\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a\n\n \/**\n * \u6700\u5c0f\u6570\u503c\n *\n * @access public\n *\n * @param string $str \u5f85\u5904\u7406\u7684\u6570\u503c\n * @param integer $value \u6700\u5c0f\u6570\u503c\n *\n * @return boolean\n *\/\n public static function minValue(string $str, int $value): bool\n {\n return ($str) >= $value;\n } \n\n3. \u5982\u4e0a\u64cd\u4f5c\u540e\uff0c\u5728\u63d2\u4ef6 Lopwon Json \u7684\uff08\u6570\u91cf\uff09\u91cc\uff0c\u5c31\u65e0\u6cd5\u8f93\u5165\u5c0f\u4e8e\u5f53\u524d\u6570\u91cf\u7684\u6570\u503c\uff0c\u907f\u514d\u4e86\u624b\u6b20\u51fa\u9519\u3002\nF \u4f7f\u7528\u6280\u5de7\u4f7f\u7528HTML\u6807\u7b7e\u548c\u5c5e\u6027\uff0c\u5728\uff08\u81ea\u5df1\u5b9a\u4e49\uff09\u91cc\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8f93\u51fa\u6587\u7ae0\u7684\u7ed3\u6784\u548c\u6837\u5f0f\uff0c\u5982\u4e0b:1. \u63d2\u4ef6\u6837\u5f0f\u5927\u90e8\u5206\u6cbf\u7528\u81ea\u4f60\u7684\u4e3b\u9898\u6837\u5f0f\uff08\u5982\uff1a\u5b57\u4f53\u5b57\u53f7\u7b49\uff09\uff0c\u5982\u6709\u663e\u793a\u5f02\u5e38\uff0c\u8bf7\u81ea\u884c\u8c03\u6574\u6587\u4ef6 lopwon.json.css \u8fdb\u884c\u9002\u914d\u3002\n\n <ul>\n <li>\u56fe\u7247\uff1a{image}<\/li>\n <li>\u6807\u9898\uff1a{title}<\/li>\n <li>\u94fe\u63a5\uff1a{permalink}<\/li>\n <li>\u65e5\u671f\uff1a{date}<\/li>\n <li>\u5185\u5bb9\uff1a{content}<\/li>\n <li>\u8bc4\u8bba\uff1a{commentsNum}<\/li>\n <li>\u535a\u5ba2\uff1a{blog}<\/li>\n <li>\u4f5c\u8005\uff1a{author}<\/li>\n <li>\u4e3b\u9875\uff1a{siteUrl}<\/li>\n <\/ul>\n\n","commentsNum":"2","blog":"\u7acb\u4e91\u56fe\u5fd7","author":"Lopwon","siteUrl":"http:\/\/www.lopwon.com\/"},"3374":{"code":"LopwonJson","cid":"3374","image":"http:\/\/www.lopwon.com\/usr\/uploads\/2023\/05\/432693060.jpg","title":"41\uff0c\u5c0f\u6ee1","permalink":"http:\/\/www.lopwon.com\/3374.html","date":"2023-05-21","content":"\u4e8c\u5341\u56db\u8282\u6c14\u5f53\u4e2d\uff0c\u5c0f\u6691\u4e4b\u540e\u6709\u5927\u6691\uff0c\u5c0f\u96ea\u4e4b\u540e\u6709\u5927\u96ea\uff0c\u5c0f\u5bd2\u4e4b\u540e\u6709\u5927\u5bd2\uff0c\u73b0\u5728\u624d\u540e\u77e5\u540e\u89c9\uff0c\u5c0f\u6ee1\u4e4b\u540e\u6ca1\u5927\u6ee1\u3002\u524d\u5f80\u6ec7\u6c60\u59ca\u59b9\u6e56\u300c\u8349\u6d77\u300d\u62cd\u5c0f\u6ee1\uff0c\u8fd9\u91cc\u662f\u4e00\u7247\u6e7f\u5730\uff0c\u6c34\u8d28\u66f4\u52a3\u4e8e\u6ec7\u6c60\uff1a\u6234\u8033\u673a\uff0c\u770b\u89c6\u9891Music by n-buna\n","commentsNum":"5","blog":"\u7acb\u4e91\u56fe\u5fd7","author":"Lopwon","siteUrl":"http:\/\/www.lopwon.com\/"},"2":{"code":"LopwonJson","cid":"2","image":"http:\/\/www.lopwon.com\/usr\/uploads\/2023\/02\/627690427.jpg","title":"\u5173\u4e8e","permalink":"http:\/\/www.lopwon.com\/about-me.html","date":"2014-07-19","content":"\u7acb\u4e91\uff08Lopwon\uff09\u662f\u4e00\u4f4d\u968f\u5fc3\u6e38\u8d70\uff0c\u4e00\u76f4\u5728\u8def\u4e0a\u7684 80 \u540e\u5927\u53d4\uff0c\u559c\u6b22\u7528\u76f8\u673a\u62cd\u62cd\uff0c\u7528\u6587\u5b57\u5199\u5199\uff0c\u4e50\u4e8e\u5206\u4eab\u6bcf\u4e00\u5f20\u7167\u7247\u7684\u6545\u4e8b\u3002\u5076\u5c14\u561b\uff0c\u6709\u4e00\u6bb5\u5c0f\u89c6\u9891\uff0c\u6709\u4e00\u4e9b\u8857\u5934\u7167\uff0c\u6301\u7eed\u7740\u8282\u6c14\u548c\u6709\u58f0\u9879\u76ee\uff0c\u505a\u6709 Typecho \u4e3b\u9898 \/ \u6a21\u677f \/ \u63d2\u4ef6\uff0c\u540c\u65f6\u6253\u7406\u522b\u7ad9\uff1a\u65ad\u7247\uff0c\u8fd8\u80b2\u6709\u4e00\u732b\u3002\u7acb\u4e91\u5e0c\u671b\u65c5\u7a0b\u957f\u4e00\u4e9b\uff0c\u65f6\u95f4\u6162\u4e00\u4e9b\uff0c\u5fc3\u5883\u5e73\u548c\u4e9b\uff0c\u4e5f\u671f\u5f85\u5f97\u5230\u9014\u7ecf\u5730\u5404\u4f4d\u670b\u53cb\u7684\u5173\u7167\uff1a\u63d0\u4f9b\u77ed\u671f\u5de5\u4f5c\u673a\u4f1a\uff1b\u6216\u662f\u6c99\u53d1\uff0c\u5496\u5561\uff0c\u96ea\u7cd5\u548c\u70ed\u6c34\u6fa1\u2026\u2026\u7acb\u4e91\u62cd\u7684\u7167\u7247\u548c\u5199\u7684\u6587\u5b57\uff0c\u5982\u679c\u80fd\u8ba9\u4f60\u4ea7\u751f\u5171\u9e23\uff0c\u4e0d\u59a8\u7559\u8a00\u652f\u6301\uff0c\u6216\u8005\u5173\u6ce8\u8ba2\u9605\uff08RSS\uff09\u535a\u5ba2\u3002\u82e5\u6709\u6084\u6084\u8bdd\uff0c\u53ef\u4ee5\u7535\u90ae\u81f3 lopwon@qq.com 1\u3002\u535a\u5ba2\u56fe\u6587\u5747\u4e3a\u539f\u4f5c\uff0c\u8f6c\u8f7d\uff01\u8fd8\u8bf7\u9075\u5b88\u77e5\u8bc6\u5171\u4eab\u534f\u8bae 2\u3002\u6ce8 \/ \u7acb\u4e91\u4ece\u672a\u4f7f\u7528\u8be5\u90ae\u7bb1\u5728\u4efb\u4e00\u535a\u5ba2\u8bc4\u8bba\uff0c\u8bf7\u7504\u522b ↩\u7f72\u540d - \u975e\u5546\u4e1a\u6027\u4f7f\u7528 - \u7981\u6b62\u6f14\u7ece 4.0 \u56fd\u9645 CC BY-NC-ND 4.0 ↩","commentsNum":"377","blog":"\u7acb\u4e91\u56fe\u5fd7","author":"Lopwon","siteUrl":"http:\/\/www.lopwon.com\/"}}