<?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; QQ</title> <atom:link href="http://zou.lu/tags/qq/feed/" rel="self" type="application/rss+xml" /><link>http://zou.lu</link> <description>走点路，走自己牛逼的路，让那些个傻逼去说吧！</description> <lastBuildDate>Sun, 25 Jul 2010 19:09:27 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>千里之堤溃于蚁穴 - 慎用 WordPress 插件</title><link>http://zou.lu/careful-about-wordpress-plugins/</link> <comments>http://zou.lu/careful-about-wordpress-plugins/#comments</comments> <pubDate>Sat, 26 Sep 2009 05:16:30 +0000</pubDate> <dc:creator>Showfom</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[日志便笺]]></category> <category><![CDATA[QQ]]></category> <category><![CDATA[WordPress插件]]></category> <category><![CDATA[博客]]></category> <category><![CDATA[滔滔]]></category><guid isPermaLink="false">http://zou.lu/careful-about-wordpress-plugins/</guid> <description><![CDATA[纠结的，昨天服务器超级不稳定，博客速度超级慢，除了服务器或者线路问题以外，我开始查找自身的问题。 一开始以为自己博客评论多的缘故，评论多和人品和相貌有关系嘛，和速度有个毛关系…… 先是看服务器上别的网站的速度，结果有的快有的慢，基本能排除服务器被攻击的问题。然后…… 经过可爱的小猫猫的提醒，我先禁用了所有插件，然后打开博客，速度刷的一下，果然，某个插件在捣鬼！ 为了排查原因，我一个一个禁用插件，人品就是好，第一个插件就出现问题了，禁用以后速度就秒杀。 可是很奇怪，第一个插件我命名为&#160; Absolute Showfom ，都是集成的一些小插件小功能。按理说就那么几行代码，能出什么问题呢？ 后来仔细排查，终于抓到元凶 —— 都是QQ的滔滔捣的鬼！ 就这么几行代码： &#60;?php //滔滔更新开始 if(!class_exists('http_fetch')){ &#160;&#160;&#160; function http_fetch($url) { &#160;&#160;&#160;&#160;&#160;&#160;&#160; if(function_exists('curl_init')) { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $curl = curl_init($url); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $rtrn = curl_exec($curl); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; curl_close($curl); &#160;&#160;&#160;&#160;&#160;&#160;&#160; } else { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $rtrn = file_get_contents($url); &#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; return $rtrn; &#160;&#160;&#160; } } function taotao($num=10){ [...]]]></description> <content:encoded><![CDATA[<p>纠结的，昨天服务器超级不稳定，博客速度超级慢，除了服务器或者线路问题以外，我开始查找自身的问题。</p><p>一开始以为自己博客评论多的缘故，评论多和人品和相貌有关系嘛，和速度有个毛关系……</p><p>先是看服务器上别的网站的速度，结果有的快有的慢，基本能排除服务器被攻击的问题。然后……</p><p> <span id="more-107"></span></p><p>经过<a href="http://imcat.in/" target="_blank">可爱的小猫猫</a>的提醒，我先禁用了所有插件，然后打开博客，速度刷的一下，果然，某个插件在捣鬼！</p><p>为了排查原因，我一个一个禁用插件，人品就是好，第一个插件就出现问题了，禁用以后速度就秒杀。</p><p>可是很奇怪，第一个插件我命名为&#160; <strong>Absolute Showfom</strong> ，都是集成的一些小插件小功能。按理说就那么几行代码，能出什么问题呢？</p><p><a href="//showfom.imgbed.com/WordPress_BA77/image.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Absolute Showfom " border="0" alt="Absolute Showfom " src="//showfom.imgbed.com/WordPress_BA77/image_thumb.png" width="508" height="90" /></a></p><p>后来仔细排查，终于抓到元凶 —— 都是QQ的滔滔捣的鬼！</p><p>就这么几行代码：</p><div style="background-color: rgb(30,30,39); font-family: &quot;None&quot;,&quot;Consolas&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;; color: rgb(255,255,255)" class="source"><span style="background-color: rgb(15,20,15); font-style: italic; color: rgb(255,0,7); font-weight: bold">&lt;?php</span> <br /><span style="background-color: rgb(15,20,15); font-style: italic; color: rgb(0,136,0)">//滔滔更新开始</span> <br /><span style="color: rgb(251,102,10); font-weight: bold">if</span>(<span style="color: rgb(255,255,255)">!</span><span style="color: rgb(255,255,255)">class_exists</span>(<span style="color: rgb(0,134,210)">'http_fetch'</span><span style="color: rgb(255,255,255)">)){</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">function</span> <span style="color: rgb(255,0,134); font-weight: bold">http_fetch</span>(<span style="color: rgb(251,102,10)">$url</span>) <span style="color: rgb(255,255,255)">{</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">if</span>(<span style="color: rgb(255,255,255)">function_exists</span>(<span style="color: rgb(0,134,210)">'curl_init'</span>)) <span style="color: rgb(255,255,255)">{</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$curl</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(255,255,255)">curl_init</span>(<span style="color: rgb(251,102,10)">$url</span>); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(255,255,255)">curl_setopt</span>(<span style="color: rgb(251,102,10)">$curl</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(255,255,255)">CURLOPT_RETURNTRANSFER</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(251,102,10); font-weight: bold">TRUE</span>); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$rtrn</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(255,255,255)">curl_exec</span>(<span style="color: rgb(251,102,10)">$curl</span>); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(255,255,255)">curl_close</span>(<span style="color: rgb(251,102,10)">$curl</span>); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(255,255,255)">}</span> <span style="color: rgb(251,102,10); font-weight: bold">else</span> <span style="color: rgb(255,255,255)">{</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$rtrn</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(255,255,255)">file_get_contents</span>(<span style="color: rgb(251,102,10)">$url</span>); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(255,255,255)">}</span>&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">return</span> <span style="color: rgb(251,102,10)">$rtrn</span>; <br />&#160;&#160;&#160; <span style="color: rgb(255,255,255)">}</span> <br /><span style="color: rgb(255,255,255)">}</span> <br /><span style="color: rgb(251,102,10); font-weight: bold">function</span> <span style="color: rgb(255,0,134); font-weight: bold">taotao</span>(<span style="color: rgb(251,102,10)">$num</span><span style="color: rgb(255,255,255)">=</span><span style="color: rgb(0,134,247); font-weight: bold">10</span><span style="color: rgb(255,255,255)">){</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$qq</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(0,134,210)">&quot;235701&quot;</span>;<span style="background-color: rgb(15,20,15); font-style: italic; color: rgb(0,136,0)">//这里填你的QQ号</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$taotao_sr</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(251,102,10); font-weight: bold">array</span>(<span style="color: rgb(0,134,210)">'网页'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'QQ机器人'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'QQ空间'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'QQ签名'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'短信'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'手机上网'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'MSN机器人'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'MSN签名'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'手机QQ'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'彩信'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'订阅'</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">&quot;&quot;</span><span style="color: rgb(255,255,255)">,</span> <span style="color: rgb(0,134,210)">'QQ状态'</span>); <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$url</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(0,134,210)">&quot;http://www.taotao.com/cgi-bin/msgMgr?type=3&amp;num=</span><span style="color: rgb(0,134,210)">$num</span><span style="color: rgb(0,134,210)">&amp;qq=</span><span style="color: rgb(0,134,210)">$qq</span><span style="color: rgb(0,134,210)">&quot;</span>; <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$result</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(255,255,255)">http_fetch</span>(<span style="color: rgb(251,102,10)">$url</span>); <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$xml</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(255,255,255)">simplexml_load_string</span>(<span style="color: rgb(251,102,10)">$result</span>); <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$md</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(251,102,10)">$xml</span><span style="color: rgb(255,255,255)">-&gt;</span><span style="color: rgb(255,0,134); font-weight: bold">info</span><span style="color: rgb(255,255,255)">-&gt;</span><span style="color: rgb(255,0,134); font-weight: bold">md</span>; <br /><span style="color: rgb(251,102,10)">$taotao_string</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(0,134,210)">''</span>;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">foreach</span> (<span style="color: rgb(251,102,10)">$md</span><span style="color: rgb(255,255,255)">-&gt;</span><span style="color: rgb(255,0,134); font-weight: bold">ml</span> <span style="color: rgb(251,102,10); font-weight: bold">as</span> <span style="color: rgb(251,102,10)">$ml</span><span style="color: rgb(255,255,255)">){</span>&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$taotao_string</span> <span style="color: rgb(255,255,255)">.=</span> <span style="color: rgb(0,134,210)">''</span><span style="color: rgb(255,255,255)">.</span>(<span style="color: rgb(255,255,255)">string</span>)<span style="color: rgb(251,102,10)">$ml</span><span style="color: rgb(255,255,255)">-&gt;</span><span style="color: rgb(255,0,134); font-weight: bold">cn</span><span style="color: rgb(255,255,255)">.</span><span style="color: rgb(0,134,210)">' '</span><span style="color: rgb(255,255,255)">.</span><span style="color: rgb(255,255,255)">LJ</span>(<span style="color: rgb(251,102,10)">$ml</span><span style="color: rgb(255,255,255)">-&gt;</span><span style="color: rgb(255,0,134); font-weight: bold">t</span>)<span style="color: rgb(255,255,255)">.</span><span style="color: rgb(0,134,210)">''</span>;&#160; <br />&#160;&#160;&#160; <span style="color: rgb(255,255,255)">}</span>&#160; <br /><span style="color: rgb(251,102,10)">$taotao_string</span> <span style="color: rgb(255,255,255)">.=</span> <span style="color: rgb(0,134,210)">''</span>; <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">return</span>&#160; <span style="color: rgb(251,102,10)">$taotao_string</span>; <br /><span style="color: rgb(255,255,255)">}</span> <br /><span style="color: rgb(251,102,10); font-weight: bold">function</span> <span style="color: rgb(255,0,134); font-weight: bold">LJ</span>(<span style="color: rgb(251,102,10)">$t</span><span style="color: rgb(255,255,255)">=</span><span style="color: rgb(0,134,210)">''</span>) <span style="color: rgb(255,255,255)">{</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$imt_taotao_t_array</span><span style="color: rgb(255,255,255)">=</span><span style="color: rgb(255,255,255)">explode</span>(<span style="color: rgb(0,134,210)">&quot;,&quot;</span><span style="color: rgb(255,255,255)">,</span><span style="color: rgb(251,102,10)">$t</span>); <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">if</span> (<span style="color: rgb(255,255,255)">count</span>(<span style="color: rgb(251,102,10)">$imt_taotao_t_array</span>) <span style="color: rgb(255,255,255)">&lt;</span> <span style="color: rgb(0,134,247); font-weight: bold">2</span>) <span style="color: rgb(255,255,255)">{</span> <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">return</span> <span style="color: rgb(0,134,210)">&quot;&quot;</span>; <br />&#160;&#160;&#160; <span style="color: rgb(255,255,255)">}</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$n</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(251,102,10)">$imt_taotao_t_array</span><span style="color: rgb(255,255,255)">[</span><span style="color: rgb(0,134,247); font-weight: bold">0</span><span style="color: rgb(255,255,255)">];</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$v</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(251,102,10)">$imt_taotao_t_array</span><span style="color: rgb(255,255,255)">[</span><span style="color: rgb(0,134,247); font-weight: bold">1</span><span style="color: rgb(255,255,255)">];</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$s</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(0,134,210)">''</span>; <br /><span style="color: rgb(255,255,255)">}</span> <br /><span style="color: rgb(251,102,10); font-weight: bold">function</span> <span style="color: rgb(255,0,134); font-weight: bold">imt_taotao</span><span style="color: rgb(255,255,255)">(){</span> <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$imt_taotao_string</span> <span style="color: rgb(255,255,255)">=</span> <span style="color: rgb(0,134,210)">''</span>; <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$imt_taotao_string</span> <span style="color: rgb(255,255,255)">.=</span><span style="color: rgb(0,134,210)">'&lt;p&gt;'</span><span style="color: rgb(255,255,255)">.</span><span style="color: rgb(255,255,255)">taotao</span>(<span style="color: rgb(0,134,247); font-weight: bold">1</span>)<span style="color: rgb(255,255,255)">.</span><span style="color: rgb(0,134,210)">'&lt;/p&gt;'</span>; <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10)">$imt_taotao_string</span> <span style="color: rgb(255,255,255)">.=</span><span style="color: rgb(0,134,210)">''</span>; <br />&#160;&#160;&#160; <span style="color: rgb(251,102,10); font-weight: bold">echo</span> <span style="color: rgb(251,102,10)">$imt_taotao_string</span>; <br /><span style="color: rgb(255,255,255)">}</span> <br /><span style="background-color: rgb(15,20,15); font-style: italic; color: rgb(255,0,7); font-weight: bold">?&gt;</span></div><p>原来昨天开始，腾讯肥企鹅的服务器一直不稳定，我说怎么QQ农场半天都进不去呢，滔滔反应超慢，也可能是限制了某些外部服务器获取数据，也许……天知道，一个阉割版的Twitter，一个抄袭版的山寨Twitter，滔滔，滔滔你个毛，还不是被老子强..奸得淫水滔滔吗？！</p><p>php 里的 curl函数，貌似就需要服务器请求远程服务器，查询了一下<a href="http://www.jb51.net/article/16224.htm" target="_blank">资料</a>之后，可以很确定是滔滔惹的祸，就是说这个插件占用了服务器大量的资源去获取滔滔的数据，结果，萎靡不正 日。</p><p>所以，总结了一下经验，连我这种老鸟都手足无措的事情，提醒在座的各位，谨慎使用 WordPress 插件，尤其是需要获取远程服务器信息的一些插件，比如同步消息之类的，万一哪天远程的服务器挂了，你的服务器不断查询不断获取，结果就是拖慢了自己的服务器。</p><p>昨天一直联系易联的客服，结果找不到北，很是不爽，先搬到 Wopus 的新服务器居住一会，算是对易联的惩罚吧，貌似听说PR要更新了，神哇，看在我交换了四五个PR为5的链接的份上，给我点RP吧！</p><p>再次唠叨下，我们只是普通的客户，但是博客是自己的心血，自己的博客速度不行肯定很着急，为啥就不能好好沟通呢？</p><p><a href="//showfom.imgbed.com/WordPress_BA77/image_3.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="帕雷桑特的“性感泥鳅”造型 " border="0" alt="帕雷桑特的“性感泥鳅”造型 " src="//showfom.imgbed.com/WordPress_BA77/image_thumb_3.png" width="529" height="354" /></a></p></p><p>另外，要直接调用滔滔的朋友，可以用js的方法，嗯，<a href="http://ooxx.me/" target="_blank">大猫</a>的<a href="http://miao.in/" target="_blank">庙</a>里直接偷来的，版权木有，主要是博客上同步QQ签名，很帅吧。</p><p>使用了<strong> jQuery</strong> 效果，务必确保你的博客加载了<strong> jQuery</strong> ，很多插件都会傻乎乎不顾一切加入的哈哈</p><p>相关 <strong>jQuery </strong>代码：</p><pre style="border-bottom: rgb(204,204,153) 1px solid; border-left: rgb(204,204,153) 1px solid; background-color: rgb(255,255,204); border-top: rgb(204,204,153) 1px solid; border-right: rgb(204,204,153) 1px solid"><span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment/start">//</span><span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment">taotao http://www.taotao.com/cgi-bin/msgj?qq=235701&amp;num=5&amp;t=0</span>
<span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment/start">//</span><span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment">// 修改下面的 235701 为你的QQ号</span>

<span style="color: rgb(0,0,0)" title="javascript/javascript">$</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(85,85,153)" title="javascript/javascript/oodynamic">ajax</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">{</span>
		<span style="color: rgb(153,51,51)" title="javascript/javascript/method">type</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">:</span> <span style="color: rgb(255,0,0)" title="javascript/javascript/double_string/start">&quot;</span><span style="color: rgb(255,0,0)" title="javascript/javascript/double_string">GET</span><span style="color: rgb(255,0,0)" title="javascript/javascript/double_string/end">&quot;</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">,</span><span style="color: rgb(0,0,0)" title="javascript/javascript">
		url</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">:</span> <span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/start">'</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string">http://taotao.qq.com/v1/qz_first/firstjson?uin=235701</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/end">'</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">,</span><span style="color: rgb(0,0,0)" title="javascript/javascript">

		success</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">:</span><span style="color: rgb(0,0,0)" title="javascript/javascript"> callback</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">,</span><span style="color: rgb(0,0,0)" title="javascript/javascript">
		dataType</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">:</span> <span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/start">'</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string">script</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/end">'</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">,</span><span style="color: rgb(0,0,0)" title="javascript/javascript">
		scriptCharset</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">:</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/start">'</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string">GB2312</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/end">'</span>

	<span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">}</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">;</span>
<span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">var</span><span style="color: rgb(0,0,0)" title="javascript/javascript"> callback </span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">=</span> <span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">function</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,0,0)" title="javascript/javascript">json</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">{</span>

	<span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">if</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,0,0)" title="javascript/javascript">json </span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">&amp;</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">&amp;</span> <span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">typeof</span><span style="color: rgb(0,0,0)" title="javascript/javascript"> json </span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">=</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">=</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">=</span> <span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/start">'</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string">object</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/end">'</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">{</span>

		<span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">var</span> <span style="color: rgb(153,51,51)" title="javascript/javascript/method">title</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">=</span><span style="color: rgb(0,0,0)" title="javascript/javascript"> json</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(85,85,153)" title="javascript/javascript/oodynamic">items</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">[</span><span style="color: rgb(17,17,238)" title="javascript/javascript/num/int">0</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">]</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(153,51,51)" title="javascript/javascript/method">title</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">|</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">|</span> <span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/start">'</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/end">'</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">;</span><span style="color: rgb(0,0,0)" title="javascript/javascript">

		$</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/start">'</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string">#taotao</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/end">'</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(85,85,153)" title="javascript/javascript/oodynamic">slideUp</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/start">'</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string">slow</span><span style="color: rgb(255,0,0)" title="javascript/javascript/single_string/end">'</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">,</span> <span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">function</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">{</span><span style="color: rgb(0,0,0)" title="javascript/javascript">$</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(51,153,51); font-weight: bold" title="javascript/javascript/object">this</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(153,51,51)" title="javascript/javascript/method">text</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(153,51,51)" title="javascript/javascript/method">title</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(85,85,153)" title="javascript/javascript/oodynamic">slideDown</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">}</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">;</span>

	<span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">}</span>
<span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">}</span>

<span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment/start">//</span><span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment">try</span>
<span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">try</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">{</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">}</span> <span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">catch</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,0,0)" title="javascript/javascript">err</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">{</span>

	<span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">var</span><span style="color: rgb(0,0,0)" title="javascript/javascript"> txt</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">;</span><span style="color: rgb(0,0,0)" title="javascript/javascript">
	txt </span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">=</span> <span style="color: rgb(255,0,0)" title="javascript/javascript/double_string/start">&quot;</span><span style="color: rgb(255,0,0)" title="javascript/javascript/double_string">Error description: </span><span style="color: rgb(255,0,0)" title="javascript/javascript/double_string/end">&quot;</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">+</span><span style="color: rgb(0,0,0)" title="javascript/javascript"> err</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(153,51,51)" title="javascript/javascript/method">description</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">;</span>

	<span style="color: rgb(153,51,51)" title="javascript/javascript/method">alert</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,0,0)" title="javascript/javascript">txt</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">;</span>
<span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">}</span>

<span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment/start">//</span><span style="font-style: italic; color: rgb(136,136,136)" title="javascript/javascript/single_comment">ready</span>
<span style="color: rgb(0,0,0)" title="javascript/javascript">$</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">.</span><span style="color: rgb(85,85,153)" title="javascript/javascript/oodynamic">ready</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,0,0); font-weight: bold" title="javascript/javascript/keyword">function</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">(</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span> <span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">{</span>

<span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">}</span><span style="color: rgb(0,128,0)" title="javascript/javascript/symbol">)</span></pre><p>然后在主题里调用</p><pre>&lt;p id=&quot;taotao&quot;&gt;loading...&lt;/p&gt;</pre><p>即可</p><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://zou.lu/planning-20090406/" title="接下来的计划">接下来的计划</a> (12)</li><li><a href="http://zou.lu/mobilepress-themes-fixed/" title="MobilePress 主题汉化并修改">MobilePress 主题汉化并修改</a> (72)</li><li><a href="http://zou.lu/comment-info-detector/" title="WordPress 显示留言者信息插件 &#8211; Comment Info Detector">WordPress 显示留言者信息插件 &#8211; Comment Info Detector</a> (254)</li><li><a href="http://zou.lu/how-to-get-more-comments-on-your-blog/" title="如何获得更多的访客评论留言数">如何获得更多的访客评论留言数</a> (251)</li><li><a href="http://zou.lu/comments-text-replace/" title="WordPress 精简版评论文明用语插件">WordPress 精简版评论文明用语插件</a> (116)</li><li><a href="http://zou.lu/4-occult-events/" title="8月6号灵异事件">8月6号灵异事件</a> (113)</li><li><a href="http://zou.lu/we-love-wp/" title="We Love WP &#8211; 稀奇古怪的网站也和我们同一个内核">We Love WP &#8211; 稀奇古怪的网站也和我们同一个内核</a> (65)</li><li><a href="http://zou.lu/wordpress-plugins-i-used/" title="我使用的 WordPress 插件">我使用的 WordPress 插件</a> (90)</li><li><a href="http://zou.lu/notes-for-wordpress-28-upgrading/" title="升级到 WordPress 2.8 以后要注意的事项">升级到 WordPress 2.8 以后要注意的事项</a> (61)</li><li><a href="http://zou.lu/optimize-wordpress-database-query-middle-object-cache/" title="优化你的 WordPress 之减少数据库查询次数（中级篇补充之 Object Cache）">优化你的 WordPress 之减少数据库查询次数（中级篇补充之 Object Cache）</a> (43)</li></ul><hr /><div style="padding: 5px 10px; background: rgb(243, 245, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><p>© from <a href="//zou.lu/?from=feed">走点路博客</a>, 2009/09/26. | <a href="http://zou.lu/careful-about-wordpress-plugins/">千里之堤溃于蚁穴 - 慎用 WordPress 插件</a> | <a href="http://zou.lu/careful-about-wordpress-plugins/#comments">135 只留言鸟</a> <br /> Tags： <a href="http://zou.lu/tags/qq/" rel="tag">QQ</a>, <a href="http://zou.lu/tags/wordpress/" rel="tag">WordPress</a>, <a href="http://zou.lu/tags/wordpress%e6%8f%92%e4%bb%b6/" rel="tag">WordPress插件</a>, <a href="http://zou.lu/tags/%e5%8d%9a%e5%ae%a2/" rel="tag">博客</a>, <a href="http://zou.lu/tags/%e6%bb%94%e6%bb%94/" rel="tag">滔滔</a> | <a href="//zou.lu/?p=107">Link</a> | <a href="http://zi.mu/domain"><font color="red">.me 域名全国最低价，首年仅需40元，续费130元促销中！</font></a></p></div>]]></content:encoded> <wfw:commentRss>http://zou.lu/careful-about-wordpress-plugins/feed/</wfw:commentRss> <slash:comments>135</slash:comments> </item> </channel> </rss>