{"id":578,"date":"2023-10-28T22:12:02","date_gmt":"2023-10-28T14:12:02","guid":{"rendered":"https:\/\/blog.ttf2.cn\/?p=578"},"modified":"2024-09-15T20:24:23","modified_gmt":"2024-09-15T12:24:23","slug":"578","status":"publish","type":"post","link":"https:\/\/blog.ttf2.cn\/index.php\/2023\/10\/28\/578\/","title":{"rendered":"\u7b80\u6613\u5929\u6c14\u9762\u677f\uff08\u4e91\u51fd\u6570\u5f62\u5f0f\u642d\u5efa\uff09"},"content":{"rendered":"<h1>\u51c6\u5907<\/h1>\n<p>\u4e91\u51fd\u6570\u5e73\u53f0\uff08\u817e\u8baf\u4e91\uff09\uff0c\u5929\u6c14API\uff08\u9ad8\u5fb7\u5730\u56fe\u5f00\u53d1\u8005\u5e73\u53f0\uff09\uff0cHTML\u4ee3\u7801\uff08\u5df2\u5728Github\u4e0a\u5f00\u6e90<a href=\"https:\/\/github.com\/TTF2CN\/Weather-Dashborad_Beijing\">TTF2CN\/Weather-Dashborad_Beijing: A simple html for test. (github.com)<\/a>\uff09<\/p>\n<h1>\u7b2c\u4e00\u90e8\u5206 \u5929\u6c14\u6570\u636e\u6e90\u7533\u8bf7<\/h1>\n<ol>\n<li>\u5728<a href=\"https:\/\/lbs.amap.com\/\">\u9ad8\u5fb7\u5f00\u653e\u5e73\u53f0 | \u9ad8\u5fb7\u5730\u56feAPI (amap.com)<\/a>\u7533\u8bf7\u60a8\u7684\u8d26\u53f7\uff08\u4e2a\u4eba\u5f00\u53d1\u8005\u76ee\u524d\u6bcf\u65e5\u514d\u8d39\u8c03\u7528300000\u6b21\u8c03\u7528\uff09\uff0c\u8fdb\u5165\u63a7\u5236\u53f0\u3002<\/li>\n<li>\u5728\u63a7\u5236\u53f0\u5de6\u4fa7<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231027223916-g61pi8o-250x300.png\" alt=\"\" \/>\u521b\u5efa\u5e94\u7528\uff0c\u5e94\u7528\u540d\u4efb\u53d6\uff0c\u7c7b\u578b\u9009\u62e9\u5929\u6c14\u3002\u5e76\u9009\u62e9\u83b7\u53d6\u4e00\u4e2a\u65b0\u7684Key<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231027224126-06xim11-300x178.png\" alt=\"\" \/>\uff0c\u670d\u52a1\u5e73\u53f0\u9009\u62e9Web\u670d\u52a1\uff0c\u5728\u5e94\u7528\u9875\u5373\u53ef\u9009\u62e9\u3002\uff08\u6ce8\uff1a\u8be5API Key\u79c1\u5bc6\uff0c\u8bf7\u59a5\u5584\u4fdd\u7ba1\uff09<\/li>\n<li>\u6ce8\uff1a\u53ef\u53c2\u8003<a href=\"https:\/\/lbs.amap.com\/api\/webservice\/guide\/api\/weatherinfo\/#t1\">\u5929\u6c14\u67e5\u8be2-API\u6587\u6863-\u5f00\u53d1\u6307\u5357-Web\u670d\u52a1 API | \u9ad8\u5fb7\u5730\u56feAPI (amap.com)<\/a><\/li>\n<li>\u82e5\u4f7f\u7528\u5176\u4ed6\u5929\u6c14\u6e90\u8bf7\u5728\u7b2c\u4e8c\u90e8\u5206\u4ed4\u7ec6\u9605\u8bfbGithub\u9879\u76ee\u4e2d\u7684README.md\u4fee\u6539\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p>\u200d<\/p>\n<h1>\u7b2c\u4e8c\u90e8\u5206 HTML\u4ee3\u7801\u8c03\u8bd5<\/h1>\n<ol>\n<li>\u5728<a href=\"https:\/\/github.com\/TTF2CN\/Weather-Dashborad_Beijing\">TTF2CN\/Weather-Dashborad_Beijing: A simple html for test. (github.com)<\/a>\u4e0b\u8f7d\u6216\u514b\u9686\u8fd9\u4e2a\u4ed3\u5e93\u5230\u60a8\u7684\u672c\u5730\u3002<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231027225619-8tzxcvq-300x186.png\" alt=\"\" \/><\/li>\n<li>\u5728\u4ee3\u780113-16\u884c<your key>\u90e8\u5206\u66ff\u6362\u60a8\u7684API Key\u3002<\/li>\n<li>(\u53ef\u9009\uff09\u5728https:\/\/lbs.amap.com\/api\/webservice\/download\u4e2d\u4e0b\u8f7d\u57ce\u5e02\u7f16\u7801\u8868\u67e5\u8be2\u60a8\u6240\u9700\u8981\u7684\u57ce\u5e02\u548c\u5730\u533a\uff0c\u66ff\u636213-16\u884c\u4e2d\u7684city\u90e8\u5206\u3002<\/li>\n<li>\u5728\u672c\u5730\u6253\u5f00HTML\u6587\u4ef6\u6d4b\u8bd5\u6570\u636e\u663e\u793a\u662f\u5426\u6b63\u5e38\u3002\u6b64\u754c\u9762\u4e3a\u6b63\u5e38\u72b6\u6001\u6f14\u793a<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231027225717-w4gdvm6-300x173.png\" alt=\"\" \/><\/li>\n<\/ol>\n<h1>\u7b2c\u4e09\u90e8\u5206 \u8fc1\u79fb\u4ee3\u7801\u81f3\u4e91\u51fd\u6570\u5e73\u53f0<\/h1>\n<p>\u672c\u6559\u7a0b\u4f7f\u7528\u817e\u8baf\u4e91\u6f14\u793a\uff0c\u5176\u4ed6\u4e91\u670d\u52a1\u5e73\u53f0\u53ef\u4f9b\u53c2\u8003\u3002<\/p>\n<ol>\n<li>\u6ce8\u518c\u4e00\u4e2a\u817e\u8baf\u4e91\u8d26\u53f7\uff0c\u8fdb\u5165\u63a7\u5236\u53f0\uff0c\u6253\u5f00\u4e91\u51fd\u6570Serverless\u3002<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231028211713-hil7dkt-300x160.png\" alt=\"\" \/><\/li>\n<li>\u65b0\u5efa\u4e00\u4e2a\u4e91\u51fd\u6570\uff0c\u9009\u62e9\u4ece\u6a21\u677f\u521b\u5efa\uff0cWeb\u9759\u6001\u7f51\u9875\u6258\u7ba1<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231028211828-q1ltlll-300x189.png\" alt=\"\" \/><\/li>\n<li>\n<p>\u9009\u62e9\u5408\u9002\u7684\u5730\u57df\uff0c\u5728\u89e6\u53d1\u5668\u914d\u7f6e\u4e2d\u9009\u62e9\u81ea\u52a8\u914d\u7f6e\uff08\u521d\u6b21\u4f7f\u7528\u9700\u8981\u5148\u5f00\u542fAPI\u7f51\u5173\u670d\u52a1\uff0c\u6b64\u5904\u4e3a\u5df2\u5f00\u901a<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231028212301-0y59800-300x208.png\" alt=\"\" \/>\uff0c<\/p>\n<p>\u51fd\u6570\u53ca\u89e6\u53d1\u5668\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u53ef\u5728\u201c\u90e8\u7f72\u65e5\u5fd7\u201d\u4e2d\u70b9\u51fb\u5feb\u901f\u8bbf\u95ee\u94fe\u63a5\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/net-img-c81c3a1a6bd08bb9f24bc92a9cb17c83-20231028212522-h67lrdg-300x69.png\" alt=\"\" \/>\u6216\u5728\u201c\u89e6\u53d1\u7ba1\u7406\u201d\u9875\u4e2d\u83b7\u53d6 API \u7f51\u5173\u89e6\u53d1\u5668\u8bbf\u95ee\u8def\u5f84\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/net-img-8a45a25c6a2e9389699dfb8b4c041387-20231028212522-9t9lc0r-300x247.png\" alt=\"\" \/><br \/>\n4.\u5728\u51fd\u6570\u7ba1\u7406\u4e2d\u4fee\u6539\u9ed8\u8ba4\u7684demo\u4ee3\u7801\u5e76\u66ff\u6362\u4e3a\u7b2c\u4e8c\u90e8\u5206\u4e2d\u8c03\u8bd5\u597d\u7684\u4ee3\u7801\u3002<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231028212614-ifbwf6z-300x210.png\" alt=\"\" \/><\/p>\n<\/li>\n<li>\u67e5\u770b Web \u9875\u9762\u3002\u5982\u4e0b\u56fe\u6240\u793a<img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231028212728-b7pnhsf-300x172.png\" alt=\"\" \/><\/li>\n<li>\n<p>\u9519\u8bef\u53c2\u8003\uff1a\u82e5\u9875\u9762\u6253\u5f00\u4e71\u7801\uff0c\u987b\u5728html\u4ee3\u7801\u9996\u884c\u6dfb\u52a0<\/p>\n<pre><code class=\"language-html\"><meta charset=\"utf-8\"><\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/blog.ttf2.cn\/wp-content\/uploads\/2023\/10\/image-20231028204009-mnglx4c-300x171.png\" alt=\"\" \/><\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u51c6\u5907 \u4e91\u51fd\u6570\u5e73\u53f0\uff08\u817e\u8baf\u4e91\uff09\uff0c\u5929\u6c14API\uff08\u9ad8\u5fb7\u5730\u56fe\u5f00\u53d1\u8005\u5e73\u53f0\uff09\uff0cHTML\u4ee3\u7801\uff08\u5df2\u5728Github\u4e0a\u5f00\u6e90TTF2CN &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.ttf2.cn\/index.php\/2023\/10\/28\/578\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u7b80\u6613\u5929\u6c14\u9762\u677f\uff08\u4e91\u51fd\u6570\u5f62\u5f0f\u642d\u5efa\uff09\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-578","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":2,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":585,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts\/578\/revisions\/585"}],"wp:attachment":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}