<?xml version="1.0" standalone="yes"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>不敢飞的小悟空-空间,博客,相册,作品 - web前端</title><link>http://www.zhnao.com/</link><description>QQ:303608589 - </description><generator>RainbowSoft Studio Z-Blog 2.2 Prism Build 140101</generator><language>zh-CN</language><copyright>Copyright © www.zhnao.com     豫ICP备08103806号本站部分文章摘录于互联网，如果侵犯了您的权利，请与站长联系，本站将及时删除	document.getElementById(&amp;quot;bdshell_js&amp;quot;).src = &amp;quot;http://bdimg.share.baidu.com/static/js/shell_v2.js?t=&amp;quot; + new Date().getHours();</copyright><pubDate>Tue, 09 Jun 2026 19:08:06 +0800</pubDate><item><title>雾炮车官方网站上线www.yichenche.cn</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/286.html</link><pubDate>Sat, 08 Oct 2016 08:16:02 +0800</pubDate><guid>http://www.zhnao.com/post/286.html</guid><description><![CDATA[<p>经过和厂家的沟通协作，雾炮车-http://<a href="http://www.yichenche.cn">www.yichenche.cn</a>，官方销售网站终于正式上线运营，该网站主要发布关于雾炮车的介绍，雾炮车价格，雾炮车厂家信息。</p>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/286.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=286</wfw:commentRss></item><item><title>自定义表单SQL命令行批量删除垃圾留言</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/285.html</link><pubDate>Tue, 06 Sep 2016 12:23:12 +0800</pubDate><guid>http://www.zhnao.com/post/285.html</guid><description><![CDATA[<p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">自定义表单SQL命令行批量删除垃圾留言</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">1.每天被恶意留言困扰，花费大量的时间去清理却效果不理想，对于没有能力做二次开发并且靠纯手工删除留言的菜鸟来讲是一个大麻烦。</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">2.大家都知道织梦的留言内容是存在数据库里的，而数据库的内容是可以批量删除的。</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">3.下面是批量删除垃圾留言的方法，前提是必须将有用的留言先审核完成。</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">数据库删除留言前准备：</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">1、分析表结构。这个很重要，这是解决问题的前提。登录网站后台-系统参数-SQL命令行工具,找到dede_diyform1(),然后查看表结构，找到以下`ifcheck` smallint(6) NOT NULL default ‘1’,ifcheck就是我们解决问题的关键。</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">2、分析ifcheck的属性。在数据库里ifcheck的属性有两种，0或1，在织梦数据库0表示未审核的留言，1则表示审核显示的留言。select * from `dede_diyform1` where ifcheck=1 order by id desc，这个命令就是查看审核通过的留言。相反则是用select * from `dede_diyform1` order by id desc，显示全部留言，包括未审核的留言。</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">3、SQL命令一键删除。先确定为审核留言内容，select * from dede_diyform1 where ifcheck=0，显示结果无没有审核的内容。确定以后删除未审核留言，在SQL命令里输入delete from dede_diyform1 where ifcheck=0，SQL命令一键删除未审核留言就实现 。</p><p style="font:15px/26px &quot;microsoft yahei&quot;, &quot;helvetica neue&quot;, helvetica, arial, sans-serif;margin:0px 0px 15px;text-align:left;color:#555555;text-transform:none;text-indent:30px;letter-spacing:normal;word-spacing:0px;box-sizing:inherit;widows:1;font-size-adjust:none;font-stretch:normal;-webkit-text-stroke-width:0px;">4、如果有修改表前缀的需要将dede修改成你自己的表前缀否则该SQL语句将运行无效。</p><p><br /></p>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/285.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=285</wfw:commentRss></item><item><title>dede文章摘要字数的设置方法</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/270.html</link><pubDate>Mon, 16 Apr 2012 11:02:56 +0800</pubDate><guid>http://www.zhnao.com/post/270.html</guid><description><![CDATA[<p>&nbsp;　　在Dedecms系统中，文章摘要（可以通过infolen或description相关标签调用）被设置了字数上限为250字符，设置上限的主要目的是减少数据库的冗余，保证网站良好的性能。因此，如果对简介内容不设置上限显然不合理，但是如果可以自由控制这一上限，那么将对网页内容布局带来积极作用。在网页设计过程中，往往需要在频道列表页面调用到文章摘要，如果可以有效控制文章摘要的字数，那么就可以使得页面布局很灵活。</p><div>&nbsp;</div><div>　　在Dedecms中，在列表页调用文章摘要的方法主要有：</div><div>&nbsp;</div><div>　　1：[field:info /]</div><div>&nbsp;</div><div>　　2：[field:description /]</div><div>&nbsp;</div><div>　　3：[field:info function=&quot;cn_substr(@me,字符数)&quot;/]</div><div>&nbsp;</div><div>　　4：[field:description function=&quot;cn_substr(@me,字符数)&quot;/]</div><div>&nbsp;</div><div>　　第1、2种方法是直接调用文章摘要，在调用的字数问题上，当使用[field:info /]时，可以在{dede:arclist infolen=' ' }{/dede:arclist}中，设置调用摘要的字符数（最高可设置为系统设置的250）；如果使用[field:description /]，则直接使用后台设置的摘要字符上限。显然，这两种方式都很被动，灵活性太差。</div><div>&nbsp;</div><div>　　第3、4种方法通过function函数实现了对文章摘要显示字符的灵活调整。当然，在没有修改文章摘要内容字符上限时，这4个方法的差异并不大。但是，下面我们来说如何修改这一上限值，就可以体现出[field:description function=&quot;cn_substr(@me,字符数)&quot;/]这一方式的重要性。</div><div>&nbsp;</div><div>　　在Dedecms中，与文章摘要相关的php文件主要有：</div><div>&nbsp;</div><div>　　/dede/archives_add.php</div><div>&nbsp;</div><div>　　/dede/archives_edit.php</div><div>&nbsp;</div><div>　　/dede/article_add.php</div><div>&nbsp;</div><div>　　/dede/article_edit.php</div><div>&nbsp;</div><div>　　/dede/article_description_main.php</div><div>&nbsp;</div><div>　　在add页面，有一句话是：&ldquo;$description = cn_substrR($description,$cfg_auot_description); &rdquo;，这句话实现了[field:description function=&quot;cn_substr(@me,字符数)&quot;/]这一功能。因为这一语句确实有利于页面布局，因此我们在实验中没有修改。</div><div>&nbsp;</div><div>　　在edit页面，有一句话是：&ldquo;$description = cn_substrR($description,250); &rdquo;，这句话中出现了一个熟悉的字符数&ldquo;250&rdquo;，这就是系统设置的文章摘要字符数的上限值。 如果是gbk编码则显示出来的就是125个字。如果是utf-8编码则是81个字。显然，我们要突破文章摘要字符数上限，肯定得拿它开刀了。是的，这里修改&ldquo;250&rdquo;为其他值即可，例如&ldquo;500&rdquo;。这里不推荐设置得过高，一个是在列表页没必要展示太多内容（展示太多内容不如直接用body了），另一个是避免数据库产生冗余。</div><div>&nbsp;</div><div>　　完成上面的修改还不够，还需要修改article_description_main.php</div><div>&nbsp;</div><div>　　在article_description_main.php页面，找到&ldquo;if($dsize&gt;250) $dsize = 250;&rdquo;语句，这里限制了在后台自动获取摘要的字符数。把这里的&ldquo;250&rdquo;修改为&ldquo;500&rdquo;即可，也就是和之前修改的字符数一致即可。（如果你确认你的每一条文章都是手动添加，手动完成摘要获取就不需要修改这个文件了。自动摘要获取主要还是给大量文章和采集准备的。）</div><div>&nbsp;</div><div>　　最后，登录后台，在系统－系统基本参数－其它选项中，自动摘要长度，改成500即可，也就是和之前修改的字符数一致即可。</div><div>&nbsp;</div><div>　　完成上述修改后，我们再到频道列表页，通过标签调用即可，示例标签如下：</div><div>&nbsp;</div><div>　　{dede:list typeid='' row='5' titlelen='100' orderby='new' pagesize='5'}</div><div>&nbsp;</div><div>　　&lt;h3&gt;&lt;a href='[field:arcurl/]'&gt;[field:title/]&lt;/a&gt;&lt;/h3&gt;</div><div>&nbsp;</div><div>　　&lt;p&gt;[field:description function='cn_substr(@me,500)'/]...&lt;/p&gt;</div><div>&nbsp;</div><div>　　{/dede:list}</div><div>&nbsp;</div><div>　　通过以上方式，我们就实现了调用的文章摘要字符为500字符，完全突破了文章摘要250字符的系统限制，为网页布局提供了更加广阔的空间。</div>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/270.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=270</wfw:commentRss></item><item><title>CSS hack写法--书写顺序为FireFox在最前，其次是IE8、IE7，最后是IE6</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/269.html</link><pubDate>Wed, 21 Mar 2012 18:12:54 +0800</pubDate><guid>http://www.zhnao.com/post/269.html</guid><description><![CDATA[<p><strong style="color: rgb(85, 91, 110); font-family: Arial; line-height: normal; ">CSS hack写法</strong></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; ">&nbsp;&nbsp;&nbsp; 书写顺序为FireFox在最前，其次是IE8、IE7，最后是IE6。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; "><span style="color: rgb(255, 0, 0); ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color:red;//所有浏览器</span></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: rgb(0, 0, 255); ">color:blue\9;//所有IE</span></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; ">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<span style="color: rgb(255, 153, 0); ">+color:orange;//IE7</span></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: rgb(153, 204, 0); ">_</span><span style="color: rgb(153, 204, 0); ">color:green;//IE6</span></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; ">&nbsp;&nbsp;&nbsp; 若浏览器为FireFox，那么<span style="color: rgb(255, 0, 0); ">color:red</span>；若浏览器为IE8，根据CSS优先性原则，<span style="color: rgb(51, 102, 255); ">color:blue</span>；若为IE7，<span style="color: rgb(255, 153, 0); ">color:orange</span>；若为IE6，则<span style="color: rgb(153, 204, 0); ">color:green</span>。</p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; "><strong>&nbsp;&nbsp;&nbsp; IE6识别&nbsp;<span style="color: rgb(255, 0, 0); ">*</span>&nbsp;、<span style="color: rgb(255, 0, 0); ">_</span></strong></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; "><strong>&nbsp;&nbsp;&nbsp; IE7识别&nbsp;<span style="color: rgb(255, 0, 0); ">*</span>&nbsp;、<span style="color: rgb(255, 0, 0); ">+</span></strong></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; "><strong>&nbsp;&nbsp;&nbsp; IE8识别&nbsp;<span style="color: rgb(255, 0, 0); ">*</span>&nbsp;、<span style="color: rgb(255, 0, 0); ">/9</span></strong></p><p style="line-height: normal; color: rgb(85, 91, 110); font-family: Arial; "><strong>&nbsp;&nbsp;&nbsp; FF什么都不识别</strong></p>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/269.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=269</wfw:commentRss></item><item><title>鼠标划过（滑过）图片时，变换另一张图片，超简单实用代码！</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/268.html</link><pubDate>Wed, 08 Feb 2012 11:10:44 +0800</pubDate><guid>http://www.zhnao.com/post/268.html</guid><description><![CDATA[<p>&nbsp;鼠标划过（滑过）图片时，变换成另一张图片，就一个img，非js代码，图片可以加超级链接！非常简单实用的一句代码。</p><p>&nbsp;</p><p>&lt;img src=&quot;a.jpg&quot; onmouseover=&quot;src='b.jpg';&quot; onmouseout=&quot;src='a.jpg'&quot; /&gt;&nbsp;</p><p>&nbsp;</p><p>仅此而已，非常的好用。可以加链接的。鼠标划过（滑过）a.jpg时，变成b.jpg。链接不变。</p>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/268.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=268</wfw:commentRss></item><item><title>调用dede栏目名，指定id栏目名调用，指定id子栏目调用</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/266.html</link><pubDate>Thu, 15 Dec 2011 16:10:47 +0800</pubDate><guid>http://www.zhnao.com/post/266.html</guid><description><![CDATA[<p>指定某id下子栏目名调用：</p><p>{dede:channel type='son' typeid='2'}&lt;a href=&quot;[field:typeurl/]&quot; title=&quot;[field:title /]&quot;&gt;[field:typename/]&lt;/a&gt; {/dede:channel}</p><p>&nbsp;</p><p>指定某id栏目名调用</p><p>{dede:type typeid='143'}&lt;a href=&quot;[field:typeurl/]&quot; title=&quot;[field:title /]&quot;&gt;[field:typename/]&lt;/a&gt;{/dede:type}</p>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/266.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=266</wfw:commentRss></item><item><title>dede调用相关文章，dede相关文章调用，超好用</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/265.html</link><pubDate>Sat, 10 Dec 2011 10:30:21 +0800</pubDate><guid>http://www.zhnao.com/post/265.html</guid><description><![CDATA[<p>　　DEDE文章的内容页面，在文章的结尾添加&ldquo;相关文章&rdquo;，这将增加文章页面的相关性，也会更有助于降低页面的跳出率，对长尾关键词还是有一定的帮助，下面分享下DEDE调用相关文章的一些经验：</p><p>　　<strong>1、修改\include\taglib\likearticle.lib.php文件</strong></p><p><br />　　找到代码：</p><blockquote><p>$typeid = &quot; AND arc.typeid IN($typeid) AND arc.id&lt;&gt;$arcid &quot;;</p><p>换成：</p><p>$typeid = &quot; And arc.id&lt;&gt;$arcid &quot;;</p></blockquote><p>&nbsp;</p><p>　　<strong>2、在文章页面的模版中添加相关文章调用</strong></p><p>&nbsp;</p><blockquote><p><strong>　　</strong>{dede:likearticle row='7' titlelen='42' orderby='rand'}</p><p><br />　　&lt;li&gt;&lt;a href=&quot;[field:arcurl/]&quot;&gt;[field:title/]&lt;/a&gt;&lt;/li&gt;</p><p><br />　　{/dede:likearticle}</p></blockquote><p><br />　　保存，在后台更新下即可。</p><p><strong><p><br />　　标签说明：row：调用文章数量、titlelen：文章标题长度、 orderby=rand：随机排序。</p></strong></p><p>&nbsp;</p>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/265.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=265</wfw:commentRss></item><item><title>dede调用指定id文档，一个标签搞定，5.6，5.7亲测可用</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/264.html</link><pubDate>Wed, 07 Dec 2011 11:24:14 +0800</pubDate><guid>http://www.zhnao.com/post/264.html</guid><description><![CDATA[<div class="f14 mb10">今天要调用指定id的一篇文档，百度，谷歌皆无正确答案，遂又去dede官方论坛找，哈哈，找到了，记录下来，分享大家。</div><div class="f14 mb10">&nbsp;</div><div id="read_tpc" class="f14 mb10">如何调用织梦CMS后台指定的ID文档呢？其实这还是非常简单的，因为织梦CMS有一个专用的调用标签，这就是idlist，下面是它的使用实例。<br />织梦标签：idlist<br />{dede:arclist idlist='1,7,8,15,20'}<br />&lt;li&gt;&lt;a href=&quot;[field:arcurl/]&quot;&gt;[field:title/]&lt;/a&gt;&lt;/li&gt; <br />{/dede:arclist}</div>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/264.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=264</wfw:commentRss></item><item><title>当鼠标移到图片上，边框的颜色变的css效果，超简洁</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/263.html</link><pubDate>Mon, 14 Nov 2011 20:13:32 +0800</pubDate><guid>http://www.zhnao.com/post/263.html</guid><description><![CDATA[<p>&nbsp;<span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;</span></p><pre id="best-answer-content" class="reply-text mb10">&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&quot;&gt;&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;&lt;title&gt;hover&lt;/title&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;!--.list img { border: 4px solid #CCC;}.list img:hover { border: 4px solid #6C0;}--&gt;&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;div class=&quot;list&quot;&gt;&lt;a href=&quot;<a href="http://www.kefong.com/" target="_blank">http://www.kefong.com</a>&quot;&gt;&lt;img src=&quot;<a href="http://www.eltesoro.com.co/imagenes/magazine/edicion39.jpg" target="_blank">http://www.eltesoro.com.co/imagenes/magazine/edicion39.jpg</a>&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</pre>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/263.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=263</wfw:commentRss></item><item><title>几种常见的dedecms 日期时间格式 标签</title><author>zhnao@163.com (zhnao)</author><link>http://www.zhnao.com/post/262.html</link><pubDate>Mon, 14 Nov 2011 16:36:38 +0800</pubDate><guid>http://www.zhnao.com/post/262.html</guid><description><![CDATA[<p>&nbsp;dede板板 日期时间格式 (利用strftime()函数格式化时间)0</p><div>日期时间格式 (利用strftime()函数格式化时间)0</div><div>首页:&nbsp;</div><div>([field:pubdate function='strftime(&quot;%m-%d&quot;,@me)'/])==(5-15)&nbsp;</div><div>([field:pubdate function='strftime(&quot;%b %d, %Y&quot;,@me)'/])==(May 15, 2008)&nbsp;</div><div>&nbsp;</div><div>列表页:&nbsp;</div><div>[field:pubdate function=&quot;GetDateTimeMK(@me)&quot;/]==2008-1-1 18:30:02</div><div>[field:pubdate function=&quot;GetDateMK(@me)&quot;/]==2008-05-15&nbsp;</div><div>&nbsp;</div><div>内容页:&nbsp;</div><div>{dede:field name='pubdate' function='GetDateMk(@me)'/}==2008-05-15&nbsp;</div><div>{dede:field name='pubdate' function='strftime(&quot;%b %d, %Y&quot;,@me)'/}==May 15, 2008&nbsp;</div><div>&nbsp;</div><div>利用strftime()函数将时间格式化:&nbsp;</div><div>&nbsp;</div><div>%a 星期几的简写</div><div>%A 星期几的全称</div><div>%b 月分的简写</div><div>%B 月份的全称</div><div>%c 标准的日期的时间串</div><div>%C 年份的后两位数字</div><div>%d 十进制表示的每月的第几天</div><div>%D 月/天/年</div><div>%e 在两字符域中，十进制表示的每月的第几天</div><div>%F 年-月-日</div><div>%g 年份的后两位数字，使用基于周的年</div><div>%G 年分，使用基于周的年</div><div>%h 简写的月份名</div><div>%H 24小时制的小时</div><div>%I 12小时制的小时</div><div>%j 十进制表示的每年的第几天</div><div>%m 十进制表示的月份</div><div>%M 十时制表示的分钟数</div><div>%n 新行符</div><div>%p 本地的AM或PM的等价显示</div><div>%r 12小时的时间</div><div>%R 显示小时和分钟：hh:mm</div><div>%S 十进制的秒数</div><div>%t 水平制表符</div><div>%T 显示时分秒：hh:mm:ss</div><div>%u 每周的第几天，星期一为第一天 （值从0到6，星期一为0）</div><div>%U 第年的第几周，把星期日做为第一天（值从0到53）</div><div>%V 每年的第几周，使用基于周的年</div><div>%w 十进制表示的星期几（值从0到6，星期天为0）</div><div>%W 每年的第几周，把星期一做为第一天（值从0到53）</div><div>%x 标准的日期串</div><div>%X 标准的时间串</div><div>%y 不带世纪的十进制年份（值从0到99）</div><div>%Y 带世纪部分的十制年份</div><div>%z，%Z 时区名称，如果不能得到时区名称则返回空字符。</div>]]></description><category>web前端</category><comments>http://www.zhnao.com/post/262.html#comment</comments><wfw:commentRss>http://www.zhnao.com/feed.asp?cmt=262</wfw:commentRss></item></channel></rss>
