<?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>dumpling</title>
	<atom:link href="http://wwf.name/feed" rel="self" type="application/rss+xml" />
	<link>http://wwf.name</link>
	<description>饺子哥</description>
	<lastBuildDate>Sun, 15 Apr 2012 15:47:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>每个人心中都有一个 最棒的老爸</title>
		<link>http://wwf.name/archives/564</link>
		<comments>http://wwf.name/archives/564#comments</comments>
		<pubDate>Sun, 15 Apr 2012 15:44:12 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[个人生活]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=564</guid>
		<description><![CDATA[（第一名的奖杯） 亲戚参加“我老爸最棒” 的节目，当作亲友团到现场助阵，结果得了第一名，恭喜。 回想到很多小时候的事，我老爸也是最棒的 &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://wwf.name/?attachment_id=563" rel="attachment wp-att-563"><img class="alignnone size-full wp-image-563" title="IMG_0580" src="http://wwf.name/wp-content/uploads/2012/04/IMG_0580-e1334503859917.jpg" alt="" width="399" height="534" /></a>（第一名的奖杯）</p>
<p>亲戚参加<strong>“我老爸最棒”</strong> 的节目，当作亲友团到现场助阵，结果得了第一名，恭喜。</p>
<p>回想到很多小时候的事，<strong>我老爸也是最棒的</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/564/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tornado模板html转义</title>
		<link>http://wwf.name/archives/555</link>
		<comments>http://wwf.name/archives/555#comments</comments>
		<pubDate>Sun, 04 Mar 2012 15:16:46 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[前端]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=555</guid>
		<description><![CDATA[tornado新版（具体版本未知)支持自动转义，比如{{ “&#60;div&#62;” }}不会输出html标签，而是进行转义。 {{ module.test(10) }} 也会进行转义。往往module的调用是输出html的，转义之后就没法使用了。 解决方法有2种: 1. 通过{% autoescape None %}关掉自动转义，但是此命令的作用于是整个文件，要么全自动转义，要么全都不转义 2. 使用{% module %}命令输出原始html. “{% module *expr* %}“ Renders a `~tornado.web.UIModule`. The output of the ``UIModule`` isnot escaped::{% module Template("foo.html", arg=42) %} 使用场景： 如果一个文件中多数需要转义，则打开{% autoescape xhtml_escape %},遇到不需要转义的则通过{% &#8230; <a href="http://wwf.name/archives/555">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2></h2>
<div>
<p>tornado新版（具体版本未知)支持自动转义，比如{{ “&lt;div&gt;” }}不会输出html标签，而是进行转义。</p>
<p>{{ module.test(10) }} 也会进行转义。往往module的调用是输出html的，转义之后就没法使用了。</p>
<p>解决方法有2种:</p>
<p>1. 通过{% autoescape None %}关掉自动转义，但是此命令的作用于是整个文件，要么全自动转义，要么全都不转义</p>
<p>2. 使用{% module %}命令输出原始html.</p>
<p>“{% module *expr* %}“</p>
<pre>Renders a `~tornado.web.UIModule`.  The output of the ``UIModule`` isnot escaped::{% module Template("foo.html", arg=42) %}</pre>
<p>使用场景：</p>
<p>如果一个文件中多数需要转义，则打开{% autoescape xhtml_escape %},遇到不需要转义的则通过{% module *expr* %}处理</p>
<p>如果一个文件多数不需要转义，则{% autoescape None %},遇到需要转义的使用{{ escape(xxx) }}处理</p>
<p>&nbsp;</p>
<p>update:</p>
<p>{% module *expr* %} 这种方法可以直接调用module类，返回不会被转义。</p>
<p>如果直接输出html,可以使用raw的方式，比如 {{ raw “&lt;div&gt;xxx&lt;/div&gt;”"” }},对&lt;div&gt;不会进行转义处理</p>
</div>
<div><a href="http://errordpython.diandian.com/post/2012-02-21/15300319">2012/02/21</a></div>
<div></div>
<div><a href="http://errordpython.diandian.com/">感谢 error.d 的解答和纪录</a></div>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/555/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>鼠标点击document 的时候autocomplete menu不关闭</title>
		<link>http://wwf.name/archives/547</link>
		<comments>http://wwf.name/archives/547#comments</comments>
		<pubDate>Sun, 04 Mar 2012 15:06:37 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[前端]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[blur]]></category>
		<category><![CDATA[jqurey]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=547</guid>
		<description><![CDATA[默认情况，如果鼠标点击input之外的任何地方就是会触发blur事件，然后把menu关闭 //具体处理的该事件的代码 .bind( "blur.autocomplete", function( event ) { if ( self.options.disabled ) { return; } clearTimeout( self.searching ); // clicks on the menu (or a button to trigger a search) will cause a blur event self.closing = setTimeout(function() { self.close( &#8230; <a href="http://wwf.name/archives/547">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>默认情况，如果鼠标点击input之外的任何地方就是会触发blur事件，然后把menu关闭</p>
<p>//具体处理的该事件的代码</p>
<pre>.bind( "blur.autocomplete", function( event ) {
	if ( self.options.disabled ) {
		return;
	}

	clearTimeout( self.searching );
	// clicks on the menu (or a button to trigger a search) will cause a blur event
	self.closing = setTimeout(function() {
	    self.close( event );
	    self._change( event );
	}, 150 );
});</pre>
<p>// clicks on the menu (or a button to trigger a search) will cause a blur event<br />
点击菜单（或者按钮提交检索）将会触发 失焦事件</p>
<p>&nbsp;</p>
<p><strong>&#8212;&#8212;&#8212;&#8212;-尝试方法&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></p>
<p><em>第一种：</em>如果我在menu open 的把 self.options.disabled 设置为true，在close的时候把 self.options.disabled false。想的很好，如果在menu open的状态下，输入新的内容，不会触发做search的动作，因为<br />
在keydown 的事件定义也有 一行判断，如果 self.options.disabled true 的话直接return；</p>
<p>.bind( “keydown.autocomplete”, function( event ) { if ( self.options.disabled || self.element.propAttr( “readOnly” ) ) {<br />
return;<br />
}<br />
// 省略<br />
}</p>
<p>放弃了这个方法。</p>
<p><em>第二方法：</em>我只是希望在menu出来的时候通过点击menu里面的节点，来关闭menu。其他的都可以不关闭menu，换句话所其实 input的blur事件，如果禁止了执行self.close( event ); 就能达到我的目的；</p>
<p>添加一个默认变量 autoClose:true</p>
<pre>options: {
  appendTo: "body",
  autoFocus: false,
  //修改了点击不在区域内的东西的时候，可以设置是否自动关闭menu 饺子 2012－03－02
  <strong>autoClose:true,</strong>
  delay: 300,
  minLength: 1,
  position: {
       my: "left top",
       at: "left bottom",
       collision: "none"
  },
  source: null
}</pre>
<p>再在 修改blur函数</p>
<pre>.bind( "blur.autocomplete", function( event ) {
	if ( self.options.disabled ) {
		return;
	}

	clearTimeout( self.searching );
	// clicks on the menu (or a button to trigger a search) will cause a blur event
	self.closing = setTimeout(function() {
	    //修改了点击不在区域内的东西的时候，可以设置是否自动关闭menu
		<strong>self.options.autoClose &amp;&amp; self.close( event ); //self.close( event );</strong>
		self._change( event );
	}, 150 );
});</pre>
<p>结果测试通过满足需求</p>
<p><a href="https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.autocomplete.js">autocomplete github地址</a></p>
<p>&nbsp;</p>
<p>demo 以后下次补上</p>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/547/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>input 或者 textarea focus reset</title>
		<link>http://wwf.name/archives/545</link>
		<comments>http://wwf.name/archives/545#comments</comments>
		<pubDate>Sun, 04 Mar 2012 14:24:30 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=545</guid>
		<description><![CDATA[表单项的时候，可能input的border想表红，结果浏览器默认的outline给的颜色套在上面，很变扭（其实默认的outline是个好东西，能不干掉尽量不要去干掉） 下面的css可以reset 那个样式，只是测了mac 下的chrome和 safari :-moz-any-link :focus { outline: none; } :focus { -moz-outline-style: none; outline: none; }]]></description>
			<content:encoded><![CDATA[<p>表单项的时候，可能input的border想表红，结果浏览器默认的outline给的颜色套在上面，很变扭（其实默认的outline是个好东西，能不干掉尽量不要去干掉）<br />
下面的css可以reset 那个样式，只是测了mac 下的chrome和 safari</p>
<p>:-moz-any-link :focus {<br />
	outline: none;<br />
}<br />
:focus {<br />
	-moz-outline-style: none;<br />
	outline: none;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/545/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.reset() form with jQuery</title>
		<link>http://wwf.name/archives/535</link>
		<comments>http://wwf.name/archives/535#comments</comments>
		<pubDate>Sat, 04 Feb 2012 02:37:54 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=535</guid>
		<description><![CDATA[$(&#8216;#formId&#8217;).reset(); // error: $(“#formId”).reset() is not a function &#160; &#160; google 之后发现 function resetForm(id){ $('#'+id).each(function(){ this.reset(); }); //$('#'+id)[0].reset(); } 哈哈～～mark一下]]></description>
			<content:encoded><![CDATA[<p>$(&#8216;#formId&#8217;).reset();</p>
<p><em>// error: $(“#formId”).reset() is not a function</em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>google 之后发现</p>
<pre>
<strong>function</strong> resetForm(id){

    $('#'+id).each(<strong>function</strong>(){

        <strong>this</strong>.reset();

    }); //$('#'+id)[0].reset();
}
</pre>
<p>哈哈～～mark一下</p>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/535/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[转帖]在同一站点下，跨子域进行ajax通信的一种解决方法</title>
		<link>http://wwf.name/archives/508</link>
		<comments>http://wwf.name/archives/508#comments</comments>
		<pubDate>Fri, 16 Dec 2011 08:04:03 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[前端]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=508</guid>
		<description><![CDATA[处于安全的考虑，浏览器对于ajax请求是有限定的，他要求发起和相应请求的双方处于相同的域名。 一种比较容易的方式就是在当前的域名下设置一个代理页面，通过它来发送请求和转接回复的数据，从而实现ajax的跨域请求。这种方式的优势在于可以跨站点而不仅限于跨子域，不过这样做还有一个弊端就是客户端的session信息将会丢失，在一些需要session的情形(比如需要用户登录验证的情况)就不能适用。 这里介绍的是另一种方法。 解决办法其实和上面的代理页面方式有些类似，上面的方式我们实际上是借用代理页面来发送请求和接受数据，从而绕开浏览器的安全设定。而在这里我们将借用代理页面所处的环境，通过它来实现功能。 首先在想要进行通信的那个子域下设置一个”代理”页面，在这个页面中我们是能对这个子域下的数据进行ajax请求的。 接着就是需要建立一个通道来使用”代理”页面的这一权限，我们在需要使用跨子域的页面中通过iframe引入代理页面，然后通过javascript就能获得代理页面的javascritp环境(iframeEle.contentWindow)，不过这里有个前提就是代理页面需要和当前页面处于同一域中(document.domain需要一致)。由于对于document.domain的值设定时有一个规定就是，域只能提升，不能降低层级或者跳到同级中(比如 home.blueidea.com 只能设为blueidea.com 而不能设为 bbs.blueidea.com或者 xx.home.blueidea.com)，所以这里可以在两个页面中同时把document.domain提升为站点的主域。 通过以上的实现，我们就可以在页面中调用想要进行通信的子域下的”代理”页面来进行ajax通讯了。  上面的图基本能解释的很清楚了，如果有疑问，可以查看原文， 原文来自 blueidea &#8212;&#8212;2011 年 12 月 27日&#8212;&#8211; ps: 英文原文 yahoo]]></description>
			<content:encoded><![CDATA[<div>处于安全的考虑，浏览器对于ajax请求是有限定的，他要求发起和相应请求的双方处于相同的域名。</div>
<div><img class="alignnone" src="http://bbs.blueidea.com/data/attachment/album//201006/14/536324_1276475239xuen.gif" alt="" width="347" height="284" /></p>
<div></div>
<div></div>
<div>一种比较容易的方式就是在当前的域名下设置一个代理页面，通过它来发送请求和转接回复的数据，从而实现ajax的跨域请求。这种方式的优势在于可以跨站点而不仅限于跨子域，不过这样做还有一个弊端就是客户端的session信息将会丢失，在一些需要session的情形(比如需要用户登录验证的情况)就不能适用。</div>
</div>
<div></div>
<div></div>
<div></div>
<div>这里介绍的是另一种方法。</div>
<div></div>
<div>解决办法其实和上面的代理页面方式有些类似，上面的方式我们实际上是借用代理页面来发送请求和接受数据，从而绕开浏览器的安全设定。而在这里我们将借用代理页面所处的环境，通过它来实现功能。</div>
<div>首先在想要进行通信的那个子域下设置一个”代理”页面，在这个页面中我们是能对这个子域下的数据进行ajax请求的。</div>
<div></div>
<div>接着就是需要建立一个通道来使用”代理”页面的这一权限，我们在需要使用跨子域的页面中通过iframe引入代理页面，然后通过javascript就能获得代理页面的javascritp环境(iframeEle.contentWindow)，不过这里有个前提就是代理页面需要和当前页面处于同一域中(document.domain需要一致)。由于对于document.domain的值设定时有一个规定就是，域只能提升，不能降低层级或者跳到同级中(比如 home.blueidea.com 只能设为blueidea.com 而不能设为 bbs.blueidea.com或者 xx.home.blueidea.com)，所以这里可以在两个页面中同时把document.domain提升为站点的主域。</div>
<div>通过以上的实现，我们就可以在页面中调用想要进行通信的子域下的”代理”页面来进行ajax通讯了。</div>
<div></div>
<div><img src="http://bbs.blueidea.com/data/attachment/album//201006/14/536324_127647676810B3.gif" alt="" /></div>
<div></div>
<div> 上面的图基本能解释的很清楚了，如果有疑问，可以查看原文，</div>
<div></div>
<div></div>
<div><a href="http://bbs.blueidea.com/home.php?mod=space&amp;uid=536324&amp;do=blog&amp;id=19761" target="_blank">原文来自 blueidea</a></div>
<div>&#8212;&#8212;2011 年 12 月 27日&#8212;&#8211;</div>
<div>ps: <a href="http://developer.yahoo.com/javascript/howto-proxy.html">英文原文 yahoo</a></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/508/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>javascript(js) 检测 中文，英文和数字</title>
		<link>http://wwf.name/archives/498</link>
		<comments>http://wwf.name/archives/498#comments</comments>
		<pubDate>Thu, 08 Dec 2011 09:56:19 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[正则]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=498</guid>
		<description><![CDATA[莫旋同学 需要 通过js检测 输入框职能是中文，英文和数字 (/^[\u2E80-\uFE4Fa-z0-9A-Z]+$/).test(&#8217;222我WAa33_&#8217;); mark一下]]></description>
			<content:encoded><![CDATA[<p>莫旋同学 需要 通过js检测 输入框职能是中文，英文和数字</p>
<p>(/^[\u2E80-\uFE4Fa-z0-9A-Z]+$/).test(&#8217;222我WAa33_&#8217;);<br />
mark一下</p>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/498/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php 删除 txt文本的任意一行</title>
		<link>http://wwf.name/archives/499</link>
		<comments>http://wwf.name/archives/499#comments</comments>
		<pubDate>Fri, 25 Nov 2011 15:24:06 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=499</guid>
		<description><![CDATA[思路： 读入文件转换成数组 unset数组相应的一项 最后写回文件 code: &#160; function delLineFromFile($fileName, $lineNum){ // check the file exists if(!is_writable($fileName)) { // print an error print “The file $fileName is not writable”; // exit the function exit; } else { // read the file into &#8230; <a href="http://wwf.name/archives/499">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>思路：</p>
<ol>
<li>读入文件转换成数组</li>
<li>unset数组相应的一项</li>
<li>最后写回文件</li>
</ol>
<p>code:</p>
<p>&nbsp;</p>
<p>function delLineFromFile($fileName, $lineNum){</p>
<p>// check the file exists</p>
<p>if(!is_writable($fileName))</p>
<p>{</p>
<p>// print an error</p>
<p>print “The file $fileName is not writable”;</p>
<p>// exit the function</p>
<p>exit;</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>// read the file into an array</p>
<p>$arr = file($fileName);</p>
<p>}</p>
<p>// the line to delete is the line number minus 1, because arrays begin at zero</p>
<p>$lineToDelete = $lineNum-1;</p>
<p>// check if the line to delete is greater than the length of the file</p>
<p>if($lineToDelete &gt; sizeof($arr))</p>
<p>{</p>
<p>// print an error</p>
<p>print “You have chosen a line number, <strong>[$lineNum]</strong>, higher than the length of the file.”;</p>
<p>// exit the function</p>
<p>exit;</p>
<p>}</p>
<p>//remove the line</p>
<p>unset($arr["$lineToDelete"]);</p>
<p>// open the file for reading</p>
<p>if (!$fp = fopen($fileName, &#8216;w+&#8217;))</p>
<p>{</p>
<p>// print an error</p>
<p>print “Cannot open file ($fileName)”;</p>
<p>// exit the function</p>
<p>exit;</p>
<p>}</p>
<p>// if $fp is valid</p>
<p>if($fp)</p>
<p>{</p>
<p>// write the array to the file</p>
<p>fwrite($fp,join($arr)); //foreach($arr as $line) { fwrite($fp,$line); } 之前是一个foreach，现在修改先join在一次写入</p>
<p>// close the file</p>
<p>fclose($fp);</p>
<p>}</p>
<p>echo “done”;</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/499/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php-date-range</title>
		<link>http://wwf.name/archives/488</link>
		<comments>http://wwf.name/archives/488#comments</comments>
		<pubDate>Thu, 24 Nov 2011 15:06:10 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=488</guid>
		<description><![CDATA[&#160; 最近使用php处理一些问题，需要通过日期的开始和结束，获得一个日期区间的数组， &#160; php-date-range date_default_timezone_set('America/Los_Angeles');//需要设置一个时区 function dateRange( $first, $last, $step = '+1 day', $format = 'Y/m/d' ) { $dates = array(); $current = strtotime( $first ); $last = strtotime( $last ); while( $current $dates[] = date( $format, $current ); $current &#8230; <a href="http://wwf.name/archives/488">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>最近使用php处理一些问题，需要通过日期的开始和结束，获得一个日期区间的数组，</p>
<p>&nbsp;</p>
<p><a href="http://www.rarst.net/script/php-date-range/" target="_blank">php-date-range</a></p>
<p><code><br />
date_default_timezone_set('America/Los_Angeles');//需要设置一个时区<br />
function dateRange( $first, $last, $step = '+1 day', $format = 'Y/m/d' ) {</code></p>
<p>$dates = array();<br />
$current = strtotime( $first );<br />
$last = strtotime( $last );</p>
<p>while( $current</p>
<p>$dates[] = date( $format, $current );<br />
$current = strtotime( $step, $current );<br />
}</p>
<p>return $dates;<br />
}<br />
php本来就有有一个<a title="range" href="http://cn2.php.net/manual/en/function.range.php" target="_blank">range 函数</a></p>
<div>array <strong>range</strong> ( <a href="http://cn2.php.net/manual/en/language.pseudo-types.php#language.types.mixed">mixed</a> <tt>$start</tt> , <a href="http://cn2.php.net/manual/en/language.pseudo-types.php#language.types.mixed">mixed</a> <tt>$limit</tt> [, <a href="http://cn2.php.net/manual/en/language.pseudo-types.php#language.types.number">number</a> <tt>$step</tt> = 1 ] )</div>
<p>&nbsp;</p>
<div id="refsect1-function.range-parameters">
<dl>
<dd>&nbsp;</p>
<p><code><br />
// array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)<br />
foreach (range(0, 12) as $number) {<br />
    echo $number;<br />
}</p>
<p>// The step parameter was introduced in 5.0.0<br />
// array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100)<br />
foreach (range(0, 100, 10) as $number) {<br />
    echo $number;<br />
}</p>
<p>// Use of character sequences introduced in 4.1.0<br />
// array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i');<br />
foreach (range('a', 'i') as $letter) {<br />
    echo $letter;<br />
}<br />
// array('c', 'b', 'a');<br />
foreach (range('c', 'a') as $letter) {<br />
    echo $letter;<br />
}<br />
</code></p>
</dd>
</dl>
</div>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/488/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>刚升wp3.2</title>
		<link>http://wwf.name/archives/448</link>
		<comments>http://wwf.name/archives/448#comments</comments>
		<pubDate>Wed, 06 Jul 2011 15:01:14 +0000</pubDate>
		<dc:creator>dumpling</dc:creator>
				<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://wwf.name/?p=448</guid>
		<description><![CDATA[界面换了，发布文章之后修改了，发布状态死活都是定时 google，百度了一个遍，没有找到其他人跟我一样， 结果是时区没有取伟大祖国的东八区 设置-》常规-》时区-》UTC+8]]></description>
			<content:encoded><![CDATA[<p>界面换了，发布文章之后修改了，发布状态死活都是定时</p>
<p>google，百度了一个遍，没有找到其他人跟我一样，</p>
<p>结果是时区没有取伟大祖国的东八区</p>
<p>设置-》常规-》时区-》UTC+8</p>
]]></content:encoded>
			<wfw:commentRss>http://wwf.name/archives/448/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

