<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>大蕉 &#187; 编程</title>
	<atom:link href="http://daozhao.goflytoday.com/category/it/%e7%bc%96%e7%a8%8b/feed/" rel="self" type="application/rss+xml" />
	<link>http://daozhao.goflytoday.com</link>
	<description>大蕉，一种有益的水果。不过本blog并不是介绍大蕉。哈哈</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:56:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>我所写的wordpress插件都上存到wordpress.org</title>
		<link>http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/</link>
		<comments>http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 13:31:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[GEO]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[相片]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=1118</guid>
		<description><![CDATA[我终于把我所写的wordpress的插件全部都上存到wordpress.org了。我一共制作了4个插件。 我写的插件大家可以在http://wordpress.org/extend/plugins/profile/daozhao下载我写的插件。 Dynamic template field display. 这... ]]></description>
			<content:encoded><![CDATA[<p>我终于把我所写的wordpress的插件全部都上存到wordpress.org了。我一共制作了4个插件。</p>
<p>我写的插件大家可以在<a href="http://wordpress.org/extend/plugins/profile/daozhao">http://wordpress.org/extend/plugins/profile/daozhao</a>下载我写的插件。</p>
<h3><a href="http://wordpress.org/extend/plugins/dynamic-template-field-display/">Dynamic template field display.</a></h3>
<p>这个插件是我第一个练手的wordpress插件，功能简单。你可以添加多个模板，在编辑文章的时候插入模板，在可视化编写器中集成了插入菜单按钮。在文章或者页面显示的时候会根据模板的设定替换成你需要显示的内容。你可以随时更改模板的内容，而文章的中的模板也会动态修改成你需要显示的内容。</p>
<h3><a href="http://wordpress.org/extend/plugins/flickr-picture-backup/">flickr picture backup</a></h3>
<p>该插件主要是对wordpress文章中有外连接到flickr的图片进行备份。以防止flickr停止服务或者更改服务协议，例如禁止外连的时候，可以把wordpress上的文章中的flickr图片链接更改为本地连接。</p>
<h3><a href="http://wordpress.org/extend/plugins/geo-lightbox/">Geo lightbox</a></h3>
<p>图片已lightbox形式显示，并可以在地图显示拍摄位置（需要有地理信息）。</p>
<div>
<h3><a href="http://wordpress.org/extend/plugins/add-flickr-photo-with-geo-tag/">Add flickr photo with geo tag</a></h3>
<p>这个插件是基于<a href="http://wordpress.org/extend/plugins/tantan-flickr/">Flickr Photo Album plugin</a>修改的。主要为了配合geo-lightbox使用，插入图片时候顺便把地理信息一并插入其中。</p>
<p>&nbsp;</p>
<p>dynamic template field display和flickr picture backup我2年前已经发布到wordpress上了。另外两个geo-lightbox和add-flickr-photo-with-geo-tag这两个插件最近才发布到wordpress.org上，主要因为这两插件不是我100%原创的。所以一路都不太好意思发布上wordpress上。不过最近整理资料的时候，想想还是把它们发布吧，开源精神是公开源代码给大家学习和进一步修改。geo-lightbox发布没有几天就过百的下载量了。</p>
</div>
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2009/08/flickr-picture-backup-plugin-for-wordpress-update/" title="Flickr picture backup plugin for wordpress更新">Flickr picture backup plugin for wordpress更新</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/flickr-picture-backup-plugin-for-wordpress-release/" title="Flickr picture backup plugin for wordpress正式发布啦">Flickr picture backup plugin for wordpress正式发布啦</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/today-flickr-block/" title="关于今天blog图片消失原因&#8211;flickr被屏蔽了">关于今天blog图片消失原因&#8211;flickr被屏蔽了</a></li>
<li><a href="http://daozhao.goflytoday.com/2011/11/suunto-d4i-dive-computer/" title="Suunto D4i dive computer松拓D4i潜水电脑">Suunto D4i dive computer松拓D4i潜水电脑</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/11/wordpress-update/" title="wordpress程序从2.7.1升级到2.8.5版本">wordpress程序从2.7.1升级到2.8.5版本</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/' addthis:title='我所写的wordpress插件都上存到wordpress.org '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine(GAE)真的TMD它，再不免费了。</title>
		<link>http://daozhao.goflytoday.com/2011/11/google-app-engine-new-price/</link>
		<comments>http://daozhao.goflytoday.com/2011/11/google-app-engine-new-price/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 04:30:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google App Engine]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=1072</guid>
		<description><![CDATA[Google App Engine(GAE)其实我已经使用了差不多2年多了。我一直都是使用免费账户。因为我的应用非常简单，而且也没有对外用户，只是帮助自己定时搜索和统计一些网络数据。使用免费账户还有很... ]]></description>
			<content:encoded><![CDATA[<p>Google App Engine(GAE)其实我已经使用了差不多2年多了。我一直都是使用免费账户。因为我的应用非常简单，而且也没有对外用户，只是帮助自己定时搜索和统计一些网络数据。使用免费账户还有很多的余量。在上个月已经知道google修改收费标准，而且已经有写bloger反应google这次比较坑爹的。当时自己也没有想太多，想想就是减少配额也应该不会影响到我的。因为我原来也只是用到免费配额的20%左右。应该不关我事。也么有去查看google新的配额说明</p>
<p>直到上星期google正是实施新的配额制度之后，我发觉我放在GAE上的应用彻底down了。开始我还以为程序是否出问题，或者没有升级到最新的GAE版本。后来检查了一遍。并没有发现问题。我就开始怀疑新的配额制度。于是登录GAE Dashboard页面，一看配额情况，数据库读写配额已经100% over了。马上去查看新的配额制度，泪奔啊！！！真的缩减了很多很多。网上搜索了，叫苦的真的非常非常多，不是一般的多。有些用户使用mircoBlog把博客安家在GAE上的用户，就是没有访客浏览自己的blog，就是应付来自各大搜索引擎的蜘蛛已经把配额用完了，免费配额基本上只能用于自我测试使用。普遍用户都在臭骂google。这次收费升级，在数据库的读写配额上升幅最大，而且收费最贵。</p>
<p>我在一年前曾经想把这个blog移植到GAE上，想把空间租用费省下来。不过后来没有太多时间去移植，所以完成。现在真的万幸当初没有这样做，否则今天你也不会看到这个blog了。我在这里也要骂一骂google这次的行为。虽然企业是要赚钱的，但是也要对客户要有个交代。价格升幅不能太大。而且起码提前1年通知。现在升幅大，又只是提前1-2个月通知。如果在GAE上跑正式业务的用户基本上只能乖乖交钱，要不然就停止业务。因为把程序迁移到一个新的平台并不是那么的简单。</p>
<p>google的不作恶的口号去了那？先用免费或者低廉的费用吸引你把平台建设在他们的服务器上。当年离不开他的平台的时候，他会同你讲把你的荷包打开，我要把你的钱全部拿走。乔布斯曾经对google的“不作恶”口号的评价是：“放屁”。看来乔布斯看事情看得非常透切。google最近把好多服务都升级了，我说的是服务收费升级了。很多服务的免费配额都调低了，收费调高了。据我所知道还有google map API，企业邮箱等。以后大家做开发的时候选择一些google的服务时候就要额外留神。要做好随时转换其他平台的准备。要不然就会出问题。以前我太崇拜google了，我经常推荐别人使用google的服务，原因是好用且免费。现在我会叫大家三思阿。大家也要注意这个问题。感觉就像早段时间淘宝商城的升价问题一样，先低价吸引你进入，再掉高价格来卖。</p>
<p>现在大家都比较推崇云服务，我开始也觉得云服务是非常好的一个服务。因为初期投入不会太大，可以随时扩充缩小。非常适合一些小型企业。现在大家选择云平台的时候一定要考虑移植性的问题。可以随时逃亡，或者在两个云平台同时运行，可以随时切换。<br />
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2010/12/htc-legend-upgrade-andriod-2-2/" title="htc legend升级andriod 2.2失望中">htc legend升级andriod 2.2失望中</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/05/google-app-engine/" title="Google App Engine试用与感受">Google App Engine试用与感受</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/11/dynamically-loading-google-maps-api-v3-by-jquery/" title="Dynamically loading Google Maps API V3 by JQuery">Dynamically loading Google Maps API V3 by JQuery</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2011/11/google-app-engine-new-price/' addthis:title='Google App Engine(GAE)真的TMD它，再不免费了。 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2011/11/google-app-engine-new-price/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine试用与感受</title>
		<link>http://daozhao.goflytoday.com/2010/05/google-app-engine/</link>
		<comments>http://daozhao.goflytoday.com/2010/05/google-app-engine/#comments</comments>
		<pubDate>Thu, 27 May 2010 03:12:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[app engine]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=856</guid>
		<description><![CDATA[google app engine是目前google的云应用中的最高级别的猛将。这两个星期试用了一下这个App engine。App engine是用来构建网络应用程序，例如你可以在上边开发一个blog程序，然后托管在google app engine上... ]]></description>
			<content:encoded><![CDATA[<p>google app engine是目前google的云应用中的最高级别的猛将。这两个星期试用了一下这个App engine。App engine是用来构建网络应用程序，例如你可以在上边开发一个blog程序，然后托管在google app engine上边，你不用再找主机托管商了，你可以使用免费版本，免费版本基本上有足够的配额给一般用户使用。当用户量增加后，你不用担心服务器的扩展。google会帮你做好一切，当然这样你需要给点钱。目前免费账号的程序可以使用可使用多达 500 MB 的存储空间和多达每月 500 万的页面浏览量(官方介绍资料)。一般用户可以用来做独立blog，有朋友已经写好了一个在app engine上运行的blog程序了&#8211; <a href="http://micolog.appspot.com/zh-cn" target="_blank">Micolog</a>。</p>
<p>目前app可以使用的语言有java和python。我无需思考就选择了python来做试验。因为我讨厌java。虽然我不会python，但是学习起来一点困难都没有。脚本语言不用关心内存管理。（在这里pk下java的内存管理，号称不用关心内存泄漏问题，但是实际上到处都是陷阱）。</p>
<p>这里讲讲App Engine需要注意的问题。开发环境一定要安装google所讲的python进行配置。不要使用python.26。需要下载新版本的App engine。我就在这个环境配置中吃了苦头。因为很久以前已经安装过App engine就旧版本。所在这次试用的时候就没有再安装新版本，发觉有些教程上边的程序不能运行，升级了app engine就可以了。</p>
<p>还有就注意是python的的环境。由于发布程序上服务器需要ssl认证，需要为python 2.5的环境安装ssl模块(<a href="http://pypi.python.org/pypi/ssl)" target="_blank">http://pypi.python.org/pypi/ssl)</a>，安装编译ssl模块需要安装mingw32进行编译，并需要下边两个库。</p>
<p>libgw32c-0.4-lib.zip(<a href="http://nchc.dl.sourceforge.net/project/gnuwin32/libgw32c/0.4/libgw32c-0.4-lib.zip" target="_blank">http://nchc.dl.sourceforge.net/project/gnuwin32/libgw32c/0.4/libgw32c-0.4-lib.zip</a>)<br />
openssl-0.9.8h-1-lib.zip(<a href="http://gnuwin32.sourceforge.net/packages/openssl.htm" target="_blank">http://gnuwin32.sourceforge.net/packages/openssl.htm</a>)</p>
<p>另外要注意的是你的python环境是完全安装的版本，我开始使用的python版本是安装别的软件时候带的python2.5。结果这个python包并没有带编译模块的头文件。折腾了我一个早上的时间。不过我发觉app engine 1.3.3的版本在没有ssl的情况下也可以发布程序上服务器，不过没有了加密，很容易把你google的账号密码泄露出去了。</p>
<p>试用的时候发觉app engine的GQL的限制挺多的。使用上并没有sql那么变化多端的查询方式。有一定的局限性。</p>
<p>使用的时候要注意数据的索引(index.yaml)，我在测试的时候开始没有注意索引这个东西，发现一些查询在本机上的测试环境上运行的时候ok的。但是当上载到服务器就运行失败。提示索引有问题。原来我试验的时候使用了google的demo程序guestbook。在原有的index.yaml文件中有些旧的数据索引，但是在我的新程序中并没有这些数据，导致上传index.yaml文件的时候失败。后来把这些数据删除了就可以了。其实只要你创建index.yaml文件，并插入下边内容。</p>
<div id="_mcePaste"><strong>indexes:</strong></div>
<div id="_mcePaste"><strong># AUTOGENERATED</strong></div>
<p>基本上你不用关心文件还需要填写那些内容。在本机测试环境中index.yaml文件的内容可以根据你的程序中的查询语句自动生成的。上传到服务器的时候需要把这个index.yaml文件发布到服务器。</p>
<p>如果服务器你本身有数据，当你上传新的index.yaml文件的时候，服务器需要一段时间重新编制索引，需要等待索引编制完毕后你才可以测试与该索引相关的程序。<br />
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2011/11/google-app-engine-new-price/" title="Google App Engine(GAE)真的TMD它，再不免费了。">Google App Engine(GAE)真的TMD它，再不免费了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/12/htc-legend-upgrade-andriod-2-2/" title="htc legend升级andriod 2.2失望中">htc legend升级andriod 2.2失望中</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/11/dynamically-loading-google-maps-api-v3-by-jquery/" title="Dynamically loading Google Maps API V3 by JQuery">Dynamically loading Google Maps API V3 by JQuery</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2010/05/google-app-engine/' addthis:title='Google App Engine试用与感受 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2010/05/google-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jqtouch使用和bug</title>
		<link>http://daozhao.goflytoday.com/2010/01/jqtouch-use-and-bug/</link>
		<comments>http://daozhao.goflytoday.com/2010/01/jqtouch-use-and-bug/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 07:33:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[jqtouch]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=698</guid>
		<description><![CDATA[发现了一个非常好的jQuery插件jQTouch。这个插件是帮助你方便开发iphone上的浏览器上的web程序。使它的操作像原生的Iphone程序有良好的界面和操作交互。 我使用了他帮朋友搞左个应用，你可以使... ]]></description>
			<content:encoded><![CDATA[<p>发现了一个非常好的jQuery插件<a title="jqtouch" href="http://www.jqtouch.com/" target="_blank">jQTouch</a>。这个插件是帮助你方便开发iphone上的浏览器上的web程序。使它的操作像原生的Iphone程序有良好的界面和操作交互。</p>
<p>我使用了他帮朋友搞左个应用，你可以使用iphone或者ipod touch访问 <a href="http://www.goflytoday.com" target="_blank">http://www.goflytoday.com</a> 就可以访问到该应用了。如果你没有iphone的话，可以使用Apple Safari浏览器去访问<a href="http://www.goflytoday.com/airline2/iphone/iphone.htm" target="_blank">这个网址</a>体验一下效果，其效果基本和iphone差不多，只是有小许细节不一样(google android的手机都可以，我用hero试过，速度比较慢)。其他浏览器就不行。</p>
<p>我使用的是<a href="http://jqtouch.googlecode.com/files/jqtouch-1.0-beta-2-r109.zip">jqtouch-1.0-beta-2-r109.zip</a>这个版本。发现有一个bug。这个bug主要表现是当列表跳转的链接为空的时候，用户点击该链接的时候，连接会成另外一种状态后不会自动恢复原来的状态。<br />
<span id="more-698"></span><br />
这个bug位于函数 showPageByHref。原来函数写法如下：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> showPageByHref<span style="color: #009900;">&#40;</span>href<span style="color: #339933;">,</span> options<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> defaults <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
                data<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
                method<span style="color: #339933;">:</span> <span style="color: #3366CC;">'GET'</span><span style="color: #339933;">,</span>
                animation<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
                callback<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
                $referrer<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #003366; font-weight: bold;">var</span> settings <span style="color: #339933;">=</span> $.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> defaults<span style="color: #339933;">,</span> options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>href <span style="color: #339933;">!=</span> <span style="color: #3366CC;">'#'</span><span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
                $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                    url<span style="color: #339933;">:</span> href<span style="color: #339933;">,</span>
                    data<span style="color: #339933;">:</span> settings.<span style="color: #660066;">data</span><span style="color: #339933;">,</span>
                    type<span style="color: #339933;">:</span> settings.<span style="color: #660066;">method</span><span style="color: #339933;">,</span>
                    success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>data<span style="color: #339933;">,</span> textStatus<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        <span style="color: #003366; font-weight: bold;">var</span> firstPage <span style="color: #339933;">=</span> insertPages<span style="color: #009900;">&#40;</span>data<span style="color: #339933;">,</span> settings.<span style="color: #660066;">animation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>firstPage<span style="color: #009900;">&#41;</span>
                        <span style="color: #009900;">&#123;</span>
                            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>settings.<span style="color: #660066;">method</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'GET'</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> jQTSettings.<span style="color: #660066;">cacheGetRequests</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> settings.$referrer<span style="color: #009900;">&#41;</span>
                            <span style="color: #009900;">&#123;</span>
                                settings.$referrer.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'#'</span> <span style="color: #339933;">+</span> firstPage.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                            <span style="color: #009900;">&#125;</span>
                            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>settings.<span style="color: #660066;">callback</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                                settings.<span style="color: #660066;">callback</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                            <span style="color: #009900;">&#125;</span>
                        <span style="color: #009900;">&#125;</span>
                    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
                    error<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>settings.$referrer<span style="color: #009900;">&#41;</span> settings.$referrer.<span style="color: #660066;">unselect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>settings.<span style="color: #660066;">callback</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                            settings.<span style="color: #660066;">callback</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #009900;">&#125;</span>
                    <span style="color: #009900;">&#125;</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$referrer<span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
                $referrer.<span style="color: #660066;">unselect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span></pre></div></div>

<p>需要把把第463行修改成下边的写法就可以了。</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">            <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>settings.$referrer<span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
                settings.$referrer.<span style="color: #660066;">unselect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span></pre></div></div>

<p>这个bug已经向作者反映了。作者告诉我svn最新的版本已经把这个错误修改了。<br />
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2011/11/11-11-ifc-apple-shop-iphone4s/" title="11.11香港IFC苹果专卖店买iphone4s失败记">11.11香港IFC苹果专卖店买iphone4s失败记</a></li>
<li><a href="http://daozhao.goflytoday.com/2011/10/iphone4s/" title="Iphone4S你失望了么？">Iphone4S你失望了么？</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/12/htc-legend-upgrade-andriod-2-2/" title="htc legend升级andriod 2.2失望中">htc legend升级andriod 2.2失望中</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/09/wo-iphone4-price/" title="联通iphone4价格分析">联通iphone4价格分析</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/05/iphone4g-price/" title="第4代iphone价格随想">第4代iphone价格随想</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2010/01/jqtouch-use-and-bug/' addthis:title='jqtouch使用和bug '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2010/01/jqtouch-use-and-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>通过设置.htaccess识别浏览器的语言重定向不同的页面</title>
		<link>http://daozhao.goflytoday.com/2010/01/browser-accept-language/</link>
		<comments>http://daozhao.goflytoday.com/2010/01/browser-accept-language/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 06:52:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=695</guid>
		<description><![CDATA[apache有一个强大的地址重写模块（Module mod_rewrite），这个模块的使用可以参照这里和这里。你也可以在google搜索这些设置。功能比较多，可以说只有你想不到没有做不到。 这个模块的一般用法... ]]></description>
			<content:encoded><![CDATA[<p>apache有一个强大的地址重写模块（Module mod_rewrite），这个模块的使用可以参照<a title="中文" href="http://lamp.linux.gov.cn/Apache/ApacheMenu/mod/mod_rewrite.html" target="_blank">这里</a>和<a title="英文" href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html" target="_blank">这里</a>。你也可以在google搜索这些设置。功能比较多，可以说只有你想不到没有做不到。</p>
<p>这个模块的一般用法有如下几种：</p>
<p>1、这个模块一般都用于一些程序的框架对地址栏的重写。例如wordpress就用到这个模块对地址栏从写，实现固定连接。</p>
<p>2、根据用户访问的浏览器用户类型重定向到不同的页面，例如：如果用户使用手机访问的话重定向到wap页面等。</p>
<p>3、当网站目录结构发生该变的时候，使用rewirte可以解析旧有的连接跳转到新的连接。</p>
<p>现在我有一个想法就是想用mod_rewrite模块去判断用户的语言，根据用户浏览器的语言重定向到不同的页面静态页面。英文的用户跳转到英文的主页，中文的用户跳转到中文的主页。我在网上搜索了一番，发觉大家都习惯使用程序去判断用的语言再去跳转，或者在程序内根据用户语言输出不同的内容。经过不断搜索和尝试，最终我都发现如何设置mod_rewrite模块去做这个操作。</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">RewriteCond %{HTTP:Accept-Language} ^zh-cn.*$ [NC]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#RewriteCond %{HTTP_ACCEPT_LANGUAGE} ^zh-cn</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">RewriteRule ^/?$ “http\:\/\/www\.goflytoday\.com\/airline2\/abc_chi\.htm” [R=301,L]</div>
<p>RewriteCond %{HTTP:Accept-Language} ^zh-cn.*$ [NC]</p>
<p>RewriteRule ^/?$  index_cn.htm [R=301,L]</p>
<p>上边的写法就可以了。RewriteCond %{HTTP:XXXXX} 这种写法可以根据http头做出很多的判断。并不只是限于下边几个参数<br />
HTTP_USER_AGENT<br />
HTTP_REFERER<br />
HTTP_COOKIE<br />
HTTP_FORWARDED<br />
HTTP_HOST<br />
HTTP_PROXY_CONNECTION<br />
HTTP_ACCEPT<br />
<h3>看看其它文章</h3>
<ul class="related_post"></ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2010/01/browser-accept-language/' addthis:title='通过设置.htaccess识别浏览器的语言重定向不同的页面 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2010/01/browser-accept-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically loading Google Maps API V3 by JQuery</title>
		<link>http://daozhao.goflytoday.com/2009/11/dynamically-loading-google-maps-api-v3-by-jquery/</link>
		<comments>http://daozhao.goflytoday.com/2009/11/dynamically-loading-google-maps-api-v3-by-jquery/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 10:26:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=663</guid>
		<description><![CDATA[发觉google的一些应用的javascript接口API的的js文件下载有时候会比较慢，会影响网站的加载。好像Google Map API v3的js下载经常都比较慢，影响整体网页的显示效果。所以今天特别研究动态载入javascr... ]]></description>
			<content:encoded><![CDATA[<p>发觉google的一些应用的javascript接口API的的js文件下载有时候会比较慢，会影响网站的加载。好像Google Map API v3的js下载经常都比较慢，影响整体网页的显示效果。所以今天特别研究动态载入javascript文件。网上搜索了一下，无非都是那几个方法。不过我发现JQuery本身就自带一个动态下载javascript文件的函数，无需用一些插件。<br />
jQuery.getScript( url, [callback] ) <a href="http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback" target="_blank">官方说明</a></p>
<p>非常容易加重js文件，1.2版本之后就可以支持跨域下载javascript文件。</p>
<p>于是我就用了动态加载Google Map API v3的javascripte文件。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">getScript</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://maps.google.com/maps/api/js?sensor=false&quot;</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Script loaded and executed.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>虽然显示了警告信息”Script loaded and executed.”， 页面变成了空白页面了，真是不解。开始怀疑JQuery的.getScript的问题，于是试了官方的示范例子，并没有问题。于是修改官方例子动态下载google map api的js。同样页面也变成了空白页。</p>
<p>估计应该是google map api v3的api问题，观看了http://maps.google.com/maps/api/js?sensor=false的源代码<br />
<span id="more-663"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">window.<span style="color: #660066;">google</span> <span style="color: #339933;">=</span> window.<span style="color: #660066;">google</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
google.<span style="color: #660066;">maps</span> <span style="color: #339933;">=</span> google.<span style="color: #660066;">maps</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">function</span> getScript<span style="color: #009900;">&#40;</span>src<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'script src=&quot;'</span> <span style="color: #339933;">+</span> src <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;'</span> <span style="color: #339933;">+</span>
                   <span style="color: #3366CC;">' type=&quot;text/javascript&quot;&gt;&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'/script&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Load</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>apiLoad<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    apiLoad<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.google.com/vt/v=ap.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.google.com/vt/v=ap.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.google.com/vt/v=ap.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.google.com/vt/v=ap.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;ap.114&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://khm0.google.com/kh/v=49&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://khm1.google.com/kh/v=49&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://khm2.google.com/kh/v=49&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://khm3.google.com/kh/v=49&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;49&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.google.com/vt/v=apt.114&amp;hl=zh-CN&amp;imgtp=png32&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.google.com/vt/v=apt.114&amp;hl=zh-CN&amp;imgtp=png32&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.google.com/vt/v=apt.114&amp;hl=zh-CN&amp;imgtp=png32&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.google.com/vt/v=apt.114&amp;hl=zh-CN&amp;imgtp=png32&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;apt.114&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.google.com/vt/v=app.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.google.com/vt/v=app.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.google.com/vt/v=app.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.google.com/vt/v=app.114&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;app.114&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;fzwq1Ofu9DMOwRrfzS_9mNjD8hXvTS89l593ng&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">366500000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1297000000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,,,</span><span style="color: #3366CC;">&quot;http://www.gmaptiles.co.kr/mapprint&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">8</span><span style="color: #339933;">,</span><span style="color: #CC0000;">9</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">345000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">348900000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">354690000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,,,</span><span style="color: #3366CC;">&quot;http://www.gmaptiles.co.kr/mapprint&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">10</span><span style="color: #339933;">,</span><span style="color: #CC0000;">18</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">329890840</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246055600</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">344646740</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">350277470</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">370277730</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,,,</span><span style="color: #3366CC;">&quot;http://www.gmaptiles.co.kr/mapprint&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">366500000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1297000000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">8</span><span style="color: #339933;">,</span><span style="color: #CC0000;">9</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">345000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">348900000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">354690000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">10</span><span style="color: #339933;">,,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">329890840</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246055600</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">344646740</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">350277470</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">370277730</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1p.11&amp;hl=zh-CN&amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;zh-CN&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;US&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;google.com&quot;</span><span style="color: #339933;">,,,</span><span style="color: #3366CC;">&quot;http://google.com/maps&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://maps.gstatic.com/intl/zh_cn/mapfiles/&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://gg.google.com&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://maps.gstatic.com/intl/zh_cn/mapfiles/api-3/22a&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">686055407</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> loadScriptTime<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
  <span style="color: #003366; font-weight: bold;">var</span> loadScriptTime <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  getScript<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://maps.gstatic.com/intl/zh_cn/mapfiles/api-3/22a/main.js&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>请看getScript()函数，函数内用了document.write来再次插入javascript文件。就是这里搞到页面空白一片。上网搜索了一下解决方法：<br />
在下班的的两个连接内找到了方法<br />
<a href="http://august.lilleaas.net/unobtrusive_google_maps_with_jquery" target="_blank">http://august.lilleaas.net/unobtrusive_google_maps_with_jquery</a><br />
<a href="http://code.google.com/intl/zh-CN/apis/maps/articles/static+js.html" target="_blank">http://code.google.com/intl/zh-CN/apis/maps/articles/static+js.html</a></p>
<p>原来需要动态加载google map api的时候需要在请求js文件的时候加回调函数作为参数。请求应该是：http://maps.google.com/maps/api/js?sensor=false&#038;callback=map_init<br />
这样请求的时候返回的javascript与原来的是不同的。请留意下边的代码 getScript的函数不再使用document.write了。而且在javascript下载完成后会自动调用map_init()函数，需要自己写一个map_init()函数</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">window.<span style="color: #660066;">google</span> <span style="color: #339933;">=</span> window.<span style="color: #660066;">google</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
google.<span style="color: #660066;">maps</span> <span style="color: #339933;">=</span> google.<span style="color: #660066;">maps</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">function</span> getScript<span style="color: #009900;">&#40;</span>src<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> s <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    s.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> src<span style="color: #339933;">;</span>
    document.<span style="color: #660066;">body</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Load</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>apiLoad<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    apiLoad<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.google.com/vt/v=ap.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.google.com/vt/v=ap.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.google.com/vt/v=ap.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.google.com/vt/v=ap.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;ap.114&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://khm0.google.com/kh/v=49&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://khm1.google.com/kh/v=49&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://khm2.google.com/kh/v=49&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://khm3.google.com/kh/v=49&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;49&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.google.com/vt/v=apt.114&amp;amp;hl=zh-CN&amp;amp;imgtp=png32&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.google.com/vt/v=apt.114&amp;amp;hl=zh-CN&amp;amp;imgtp=png32&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.google.com/vt/v=apt.114&amp;amp;hl=zh-CN&amp;amp;imgtp=png32&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.google.com/vt/v=apt.114&amp;amp;hl=zh-CN&amp;amp;imgtp=png32&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;apt.114&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.google.com/vt/v=app.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.google.com/vt/v=app.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.google.com/vt/v=app.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.google.com/vt/v=app.114&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,</span><span style="color: #3366CC;">&quot;app.114&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;fzwq2i5W0_vw_-9fFuwYnxkPJjzoLw6PvDzbBw&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">366500000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1297000000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,,,</span><span style="color: #3366CC;">&quot;http://www.gmaptiles.co.kr/mapprint&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">8</span><span style="color: #339933;">,</span><span style="color: #CC0000;">9</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">345000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">348900000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">354690000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,,,</span><span style="color: #3366CC;">&quot;http://www.gmaptiles.co.kr/mapprint&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">10</span><span style="color: #339933;">,</span><span style="color: #CC0000;">18</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">329890840</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246055600</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">344646740</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">350277470</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">370277730</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,,,,</span><span style="color: #3366CC;">&quot;http://www.gmaptiles.co.kr/mapprint&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #CC0000;">7</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">366500000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1297000000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">8</span><span style="color: #339933;">,</span><span style="color: #CC0000;">9</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">330000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246050000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">345000000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1279600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">348900000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1286700000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">354690000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1293600000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386200000</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><span style="color: #CC0000;">10</span><span style="color: #339933;">,,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">329890840</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1246055600</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">344646740</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1284960940</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">350277470</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1288476560</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">370277730</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1310531620</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">386930130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1320034790</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://mt0.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt1.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt2.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://mt3.gmaptiles.co.kr/mt/v=kr1p.11&amp;amp;hl=zh-CN&amp;amp;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;zh-CN&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;US&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;google.com&quot;</span><span style="color: #339933;">,,,</span><span style="color: #3366CC;">&quot;http://google.com/maps&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://maps.gstatic.com/intl/zh_cn/mapfiles/&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;http://gg.google.com&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;http://maps.gstatic.com/intl/zh_cn/mapfiles/api-3/22a&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">4126402443</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> loadScriptTime<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    map_init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
  <span style="color: #003366; font-weight: bold;">var</span> loadScriptTime <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  getScript<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://maps.gstatic.com/intl/zh_cn/mapfiles/api-3/22a/main.js&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>这样就可以成功使用$.getScript动态加载google map api V3的javascript了。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> map_init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Script loaded and executed.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
$.<span style="color: #660066;">getScript</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://maps.google.com/maps/api/js?sensor=false&amp;callback=map_init&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2011/11/google-app-engine-new-price/" title="Google App Engine(GAE)真的TMD它，再不免费了。">Google App Engine(GAE)真的TMD它，再不免费了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/12/htc-legend-upgrade-andriod-2-2/" title="htc legend升级andriod 2.2失望中">htc legend升级andriod 2.2失望中</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/05/google-app-engine/" title="Google App Engine试用与感受">Google App Engine试用与感受</a></li>
<li><a href="http://daozhao.goflytoday.com/2010/01/jqtouch-use-and-bug/" title="jqtouch使用和bug">jqtouch使用和bug</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/04/jquery-ui-close-tabs-by-self/" title="jquery-ui-1.7.1 new tabs and close tabs by self">jquery-ui-1.7.1 new tabs and close tabs by self</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2009/11/dynamically-loading-google-maps-api-v3-by-jquery/' addthis:title='Dynamically loading Google Maps API V3 by JQuery '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2009/11/dynamically-loading-google-maps-api-v3-by-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress程序从2.7.1升级到2.8.5版本</title>
		<link>http://daozhao.goflytoday.com/2009/11/wordpress-update/</link>
		<comments>http://daozhao.goflytoday.com/2009/11/wordpress-update/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 10:09:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=650</guid>
		<description><![CDATA[今天wordpress程序从2.7.1升级到2.8.5版本。本来在2.8的版本发布的时候就想升级了。但是由于升级失败，老是提示内存分配不足。所以一路都没有升级到2.8的版本。但是最近因为需要解决一些问题... ]]></description>
			<content:encoded><![CDATA[<p>今天wordpress程序从2.7.1升级到2.8.5版本。本来在2.8的版本发布的时候就想升级了。但是由于升级失败，老是提示内存分配不足。所以一路都没有升级到2.8的版本。但是最近因为需要解决一些问题的时候在网上搜索到关于2.8升级提示内存分配不足的问题。只要在php.ini文件配置一个选项就可以了。</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">memory_limit = 128M      ; Maximum amount of memory a script may consume (16MB)</div>
<p>memory_limit = 128M      ; Maximum amount of memory a script may consume (16MB)</p>
<div>默认是16MB的，我这里改成128M了。据说改成64M都可以的。</div>
<div>wordpress官方解决方法：<span style="font-family: 'Lucida Grande'; line-height: 22px; font-size: 12px; color: #333333;"><a href="http://wordpress.org/support/topic/194370" target="_blank">http://wordpress.org/support/topic/194370</a></span></div>
<div><span style="font-family: 'Lucida Grande'; line-height: 22px; font-size: 12px; color: #333333;"><br />
</span></div>
<div><span style="font-family: 'Lucida Grande'; color: #333333; font-size: small;"><span style="line-height: 22px;">修改了配置文件后就直接在wordpress管理界面按自动升级就可以了。整个过程非常顺利。</span></span></div>
<div><span style="font-family: 'Lucida Grande'; color: #333333;"><span style="line-height: 22px; font-size: small;">升级后检查了几个主要的插件，运作都比较正常。但是有一个lightbox显示大图片浏览不正常。经过检查后发觉是jQuery的问题。由于新版wordpress使用了1.3.2的jQuery。而旧版本的wordpress使用了1.2.6的jQuery。我把旧版的jQuery覆盖1.3.2的文件就可以正常了。经过debug和网上搜索，发觉lightbox插件中的javascript使用了一个选择器的符号(@），在jQuery 1.3之后的版本都不支持了。jQuery(&#8216;a[@rel*=lightbox]&#8216;)这样写的选择器有问题，需要把@符号去掉。改写成jQuery(&#8216;a[rel*=lightbox]&#8216;)才可以。于是修改lightbox的代码，把wordpress的jQuery恢复回1.3.2的版本。</span></span></div>
<div><span style="font-family: 'Lucida Grande'; color: #333333;"><span style="line-height: 22px; font-size: small;"><br />
</span></span></div>
<div>jQurey的官方说明：<a href="http://docs.jquery.com/Selectors" target="_blank">http://docs.jquery.com/Selectors</a></div>
<div><strong>Attribute Filters:</strong></div>
<div><span style="font-family: 'Lucida Grande'; color: #333333;"><span style="line-height: 22px; font-size: small;"><strong>Note:</strong> In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the &#8216;@&#8217; symbol from your selectors in order to make them work again.</span></span></div>
<div><span style="font-family: 'Lucida Grande'; color: #333333; font-size: small;"><span style="line-height: 22px;"><br />
</span></span></div>
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/" title="我所写的wordpress插件都上存到wordpress.org">我所写的wordpress插件都上存到wordpress.org</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/08/flickr-picture-backup-plugin-for-wordpress-update/" title="Flickr picture backup plugin for wordpress更新">Flickr picture backup plugin for wordpress更新</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/07/wordpress-plugins-flickr-picture-backup-download-over-100/" title="第二个wordpress插件&#8211;flickr picture backup下载量100了。">第二个wordpress插件&#8211;flickr picture backup下载量100了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/first-wordpress-plugin-download-upto100/" title="第一个制作的wordpress插件下载量超100了。">第一个制作的wordpress插件下载量超100了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/wordpress-rss-more/" title="wordpress 自定义rss摘要输出-输出到more标签">wordpress 自定义rss摘要输出-输出到more标签</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2009/11/wordpress-update/' addthis:title='wordpress程序从2.7.1升级到2.8.5版本 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2009/11/wordpress-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickr picture backup plugin for wordpress更新</title>
		<link>http://daozhao.goflytoday.com/2009/08/flickr-picture-backup-plugin-for-wordpress-update/</link>
		<comments>http://daozhao.goflytoday.com/2009/08/flickr-picture-backup-plugin-for-wordpress-update/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 04:06:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=420</guid>
		<description><![CDATA[Flickr picture backup plugin for wordpress更新到0.6版本。 该版本主要增加了 &#60;a&#62; 连接图片的支持,方便支持一些lightbox幻灯片播放插件.因为这个blog开始支持lightbox幻灯播放图片了。所以增加支持。 ... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://daozhao.goflytoday.com/flickr-picture-backup-plugin-for-wordpress-cn/">Flickr picture backup plugin for wordpress</a>更新到0.6版本。</p>
<p>该版本主要增加了 &lt;a&gt; 连接图片的支持,方便支持一些lightbox幻灯片播放插件.因为这个blog开始支持lightbox幻灯播放图片了。所以增加支持。</p>
<p>例如：<br />
&lt;a href=”http://farm4.static.flickr.com/3456/3404575364aea19a9ab3s.jpg” &gt;<br />
转变为：<br />
&lt;a href=”http://yourdomain/wp-content/uploads/flickrbackup/3404575364aea19a9ab3s.jpg” &gt;</p>
<p>已经安装的朋友可以通过wordpress的插件管理进行自动升级。</p>
<p>未安装的朋友可以到<a href="http://daozhao.goflytoday.com/flickr-picture-backup-plugin-for-wordpress-cn/">Flickr picture backup plugin for wordpress</a>这里查看说明和下载插件。<br />
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/" title="我所写的wordpress插件都上存到wordpress.org">我所写的wordpress插件都上存到wordpress.org</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/flickr-picture-backup-plugin-for-wordpress-release/" title="Flickr picture backup plugin for wordpress正式发布啦">Flickr picture backup plugin for wordpress正式发布啦</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/today-flickr-block/" title="关于今天blog图片消失原因&#8211;flickr被屏蔽了">关于今天blog图片消失原因&#8211;flickr被屏蔽了</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/04/my-first-plugins-for-wordpress/" title="我的第一个wordpress插件发布了。">我的第一个wordpress插件发布了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/11/wordpress-update/" title="wordpress程序从2.7.1升级到2.8.5版本">wordpress程序从2.7.1升级到2.8.5版本</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2009/08/flickr-picture-backup-plugin-for-wordpress-update/' addthis:title='Flickr picture backup plugin for wordpress更新 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2009/08/flickr-picture-backup-plugin-for-wordpress-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>第二个wordpress插件&#8211;flickr picture backup下载量100了。</title>
		<link>http://daozhao.goflytoday.com/2009/07/wordpress-plugins-flickr-picture-backup-download-over-100/</link>
		<comments>http://daozhao.goflytoday.com/2009/07/wordpress-plugins-flickr-picture-backup-download-over-100/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 02:38:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=357</guid>
		<description><![CDATA[今天我制作的第二个wordpress的插件&#8211;flickr picture backup终于下载量过百了。插件是6月3日发布的。经历了34天的时间。比起第一个插件Dynamic template field display.的成绩要好。 本来已经制作好第三... ]]></description>
			<content:encoded><![CDATA[<p>今天我制作的第二个wordpress的插件&#8211;<a title="flickr picture backup" href="http://wordpress.org/extend/plugins/flickr-picture-backup/" target="_blank">flickr picture backup</a>终于下载量过百了。插件是6月3日发布的。经历了34天的时间。比起第一个插件<a href="http://wordpress.org/extend/plugins/dynamic-template-field-display/">Dynamic template field display.</a>的成绩要好。</p>
<p>本来已经制作好第三个插件，但是发布前发现一个小bug，一路都未想到方法解决。所以暂不发布。<br />
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2009/06/first-wordpress-plugin-download-upto100/" title="第一个制作的wordpress插件下载量超100了。">第一个制作的wordpress插件下载量超100了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/flickr-picture-backup-plugin-for-wordpress-release/" title="Flickr picture backup plugin for wordpress正式发布啦">Flickr picture backup plugin for wordpress正式发布啦</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/today-flickr-block/" title="关于今天blog图片消失原因&#8211;flickr被屏蔽了">关于今天blog图片消失原因&#8211;flickr被屏蔽了</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/04/my-first-plugins-for-wordpress/" title="我的第一个wordpress插件发布了。">我的第一个wordpress插件发布了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/" title="我所写的wordpress插件都上存到wordpress.org">我所写的wordpress插件都上存到wordpress.org</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2009/07/wordpress-plugins-flickr-picture-backup-download-over-100/' addthis:title='第二个wordpress插件&#8211;flickr picture backup下载量100了。 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2009/07/wordpress-plugins-flickr-picture-backup-download-over-100/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>第一个制作的wordpress插件下载量超100了。</title>
		<link>http://daozhao.goflytoday.com/2009/06/first-wordpress-plugin-download-upto100/</link>
		<comments>http://daozhao.goflytoday.com/2009/06/first-wordpress-plugin-download-upto100/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 03:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://daozhao.goflytoday.com/?p=345</guid>
		<description><![CDATA[我制作的第一个wordpress的插件&#8211;Dynamic template field display.经历左2个月左右的时间，下载量已经超过100了。虽然对比别人有名气的插件下载量过万来说只是小毛见大毛。不过对自己也是有点安... ]]></description>
			<content:encoded><![CDATA[<p>我制作的第一个wordpress的插件&#8211;<a href="http://wordpress.org/extend/plugins/dynamic-template-field-display/" target="_blank">Dynamic template field display.</a>经历左2个月左右的时间，下载量已经超过100了。虽然对比别人有名气的插件下载量过万来说只是小毛见大毛。不过对自己也是有点安慰的。不敬还是有人有这个需求，需要我这个插件。虽然我不能确定有多少用户正在使用。下个月如果有时间会对这个插件进行一次更新，主要是修改设置页面的显示效果。使它更加方便用户使用。</p>
<p>对应我的制作的另外一个插件<a href="http://wordpress.org/extend/plugins/flickr-picture-backup/" target="_blank">flickr picture backup</a>不到半个月的时间已经有83个下载。成绩比第一个插件好。</p>
<p><a title="查看插件下载量" href="http://wordpress.org/extend/plugins/profile/daozhao" target="_blank">点击查看我写的插件下载量</a></p>
<p>未来还会制作一个与flickr照片地理位置与google地图结合的插件。不过这个插件可能相对复杂。需要点时间制作和测试。<br />
<h3>请看看相关文章</h3>
<ul class="related_post">
<li><a href="http://daozhao.goflytoday.com/2009/07/wordpress-plugins-flickr-picture-backup-download-over-100/" title="第二个wordpress插件&#8211;flickr picture backup下载量100了。">第二个wordpress插件&#8211;flickr picture backup下载量100了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/flickr-picture-backup-plugin-for-wordpress-release/" title="Flickr picture backup plugin for wordpress正式发布啦">Flickr picture backup plugin for wordpress正式发布啦</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/06/today-flickr-block/" title="关于今天blog图片消失原因&#8211;flickr被屏蔽了">关于今天blog图片消失原因&#8211;flickr被屏蔽了</a></li>
<li><a href="http://daozhao.goflytoday.com/2009/04/my-first-plugins-for-wordpress/" title="我的第一个wordpress插件发布了。">我的第一个wordpress插件发布了。</a></li>
<li><a href="http://daozhao.goflytoday.com/2011/12/wordpress-plugin-upload/" title="我所写的wordpress插件都上存到wordpress.org">我所写的wordpress插件都上存到wordpress.org</a></li>
</ul>
<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://daozhao.goflytoday.com/2009/06/first-wordpress-plugin-download-upto100/' addthis:title='第一个制作的wordpress插件下载量超100了。 '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://daozhao.goflytoday.com/2009/06/first-wordpress-plugin-download-upto100/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

