 {"id":488,"date":"2012-11-13T14:30:08","date_gmt":"2012-11-13T06:30:08","guid":{"rendered":"http:\/\/www.qyuef.com\/?p=488"},"modified":"2012-11-13T14:30:08","modified_gmt":"2012-11-13T06:30:08","slug":"%e9%ab%98%e5%be%b7%e5%9c%b0%e5%9b%bejavascript%e7%89%88%e6%9c%acapi%e5%ae%9e%e7%8e%b0%e5%ae%9a%e7%82%b9%e6%a0%87%e6%b3%a8%e5%85%ac%e4%ba%a4%e6%9f%a5%e8%af%a2","status":"publish","type":"post","link":"http:\/\/www.qyuef.com\/?p=488","title":{"rendered":"\u9ad8\u5fb7\u5730\u56fejavascript\u7248\u672capi\u5b9e\u73b0\u5b9a\u70b9\u6807\u6ce8\u516c\u4ea4\u67e5\u8be2"},"content":{"rendered":"<p>\u6709\u65f6\u5019\u5728\u505a\u516c\u53f8\u7f51\u7ad9\u7684\u65f6\u5019\u9700\u8981\u5c55\u793a\u516c\u53f8\u7684\u8054\u7cfb\u65b9\u5f0f\u548c\u5730\u70b9\u7b49\u3002\u4f20\u7edf\u7684\u65b9\u5f0f\u662f\u7559\u4e0b\u7535\u8bdd\uff0c\u90ae\u7bb1\uff0cQQ\uff0c\u5730\u5740\u7b49\u3002\u4e0b\u9762\u535a\u4e3b\u4ecb\u7ecd\u4e00\u79cd\u66f4\u52a0\u76f4\u89c2\u65b9\u4fbf\u7684\u5c55\u793a\u65b9\u5f0f\u3002<\/p>\n<p>\u8be5\u65b9\u6cd5\u5229\u7528\u9ad8\u5fb7\u5730\u56fe\u63a8\u51fa\u7684\u514d\u8d39api\u6765\u505a\u63a5\u53e3\u3002\u8981\u70b9\u5982\u4e0b\uff1a<\/p>\n<p>\u4e00\uff1a\u9996\u5148\u5f15\u5165\u63a5\u53e3\u6587\u4ef6\u3002<\/p>\n<p><span style=\"font-size:10px;\">&lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/api.amap.com\/Public\/Css\/demo.Default.css&quot; type=&quot;text\/css&quot; \/&gt;&nbsp;<br \/>\n\t&lt;script language=&quot;javascript&quot; src=&quot;http:\/\/api.amap.com\/webapi\/init?v=1.1&quot;&gt;&lt;\/script&gt;<\/span><\/p>\n<p>\u4e8c\uff1a\u5bf9\u4f4d\u7f6e\u4e2d\u5fc3\u5b9a\u4f4d\u3002<\/p>\n<p>function mapInit() {<\/p>\n<p>var opt = {<\/p>\n<p>level : 17, \/\/\u8bbe\u7f6e\u5730\u56fe\u7f29\u653e\u7ea7\u522b<\/p>\n<p>center : new AMap.LngLat(104.04297888,30.6836646), \/\/\u8bbe\u7f6e\u5730\u56fe\u4e2d\u5fc3\u70b9<\/p>\n<p>doubleClickZoom : true, \/\/\u53cc\u51fb\u653e\u5927\u5730\u56fe<\/p>\n<p>scrollWheel : true\/\/\u9f20\u6807\u6eda\u8f6e\u7f29\u653e\u5730\u56fe<\/p>\n<p>}<\/p>\n<p>\u4e09\uff1a\u8bbe\u7f6e\u6c14\u6ce1\u663e\u793a\u4fe1\u606f\u3002<\/p>\n<p>var info = [];<\/p>\n<p>info.push(&quot;&lt;b&gt;\u6210\u90fd\u6052\u535a\u533b\u9662&lt;\/b&gt;&quot;);<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; info.push(&quot;\u7535\u8bdd : 028-87712345 &nbsp; \u90ae\u7f16 : 611745&quot;);<\/p>\n<p>info.push(&quot;\u5730\u5740 : \u6210\u90fd\u5e02\u8425\u95e8\u53e3\u8def50\u53f7&quot;);<\/p>\n<p>\u56db\uff1a\u5728html\u4e2d\u4f7f\u7528\u3002 <\/p>\n<p>&nbsp;<\/p>\n<p>&lt;body onload=&quot;mapInit();&quot;&gt;<\/p>\n<p>&nbsp; &nbsp;&lt;center&gt;<\/p>\n<p>&lt;table width=&quot;661px&quot; &nbsp;border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<\/p>\n<p>&lt;tr&gt;<\/p>\n<p>&lt;td&gt;&lt;div id=&quot;iCenter&quot; style=&quot;height:400px; border:#CCCCCC 2px solid; width:461px&quot;&gt; &lt;\/div&gt;&lt;\/td&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;300&quot;&gt;&lt;div style=&quot;padding:2px 0px 0px 5px;font-size:12px; width:400px;&quot;&gt;<\/p>\n<p>&lt;div style=&quot;line-height:30px;&quot;&gt;<\/p>\n<p>&lt;b&gt;\u4ece\uff1a&lt;\/b&gt;<\/p>\n<p>&lt;input type=&quot;hidden&quot; id=&quot;city&quot; name=&quot;city&quot; value=&quot;028&quot; \/&gt;<\/p>\n<p>&lt;input type=&quot;text&quot; id=&quot;keyword&quot; name=&quot;keyword&quot; value=&quot;\u6210\u90fd\u6052\u535a\u533b\u9662&quot;\/&gt;&lt;\/br\/&gt;<\/p>\n<p>&lt;b&gt;\u5230\uff1a&lt;\/b&gt;<\/p>\n<p>&lt;input type=&quot;text&quot; id=&quot;keyword1&quot; name=&quot;keyword1&quot; value=&quot;\u4e07\u8fbe\u5e7f\u573a&quot;\/&gt;<\/p>\n<p>&lt;input type=&quot;button&quot; value=&quot;\u67e5\u8be2&quot; onclick=&quot;keywordSearch()&quot;\/&gt;<\/p>\n<p>&lt;div style=&quot;padding:0px 0 4px 2px; background-color:#D1EEEE&quot;&gt;<\/p>\n<p>&lt;b&gt;\u67e5\u8be2\u7ed3\u679c:&lt;\/b&gt;<\/p>\n<p>&lt;\/div&gt;&lt;div id=&quot;result&quot; name=&quot;result&quot; style=&quot;overflow:auto;margin-top:5px;width:401px;height:255px&quot;&gt; &lt;\/div&gt;&lt;\/div&gt;&lt;\/td&gt;<\/p>\n<p>&lt;\/tr&gt;<\/p>\n<p>&lt;\/table&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/center&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&nbsp;\u6f14\u793a\u5730\u5740\u5982\u9700\u4e0b\u8f7d\u5c06html\u4fdd\u5b58\u62a5\u672c\u5730\uff1a<a href=\"http:\/\/www.qyuef.com\/map.html\">http:\/\/www.qyuef.com\/map.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u65f6\u5019\u5728\u505a\u516c\u53f8\u7f51\u7ad9\u7684\u65f6\u5019\u9700\u8981\u5c55\u793a\u516c\u53f8\u7684\u8054\u7cfb\u65b9\u5f0f\u548c\u5730\u70b9\u7b49\u3002\u4f20\u7edf\u7684\u65b9\u5f0f\u662f\u7559\u4e0b\u7535\u8bdd\uff0c\u90ae\u7bb1\uff0cQQ\uff0c\u5730\u5740\u7b49\u3002\u4e0b\u9762\u535a\u4e3b\u4ecb\u7ecd\u4e00\u79cd\u66f4\u52a0\u76f4\u89c2\u65b9\u4fbf\u7684\u5c55\u793a\u65b9\u5f0f\u3002\u8be5\u65b9\u6cd5\u5229\u7528\u9ad8\u5fb7\u5730\u56fe\u63a8\u51fa\u7684\u514d\u8d39api\u6765\u505a\u63a5\u53e3\u3002\u8981\u70b9\u5982\u4e0b\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"tcat":[],"_links":{"self":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts\/488"}],"collection":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488"}],"version-history":[{"count":0,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488"},{"taxonomy":"tcat","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftcat&post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}