﻿<?xml version="1.0" encoding="utf-8" 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>语源科技BlogJava-wayne's space</title><link>http://www.blogjava.net/waynedou/</link><description>Novice's Attitude</description><language>zh-cn</language><lastBuildDate>Mon, 13 Apr 2026 09:02:20 GMT</lastBuildDate><pubDate>Mon, 13 Apr 2026 09:02:20 GMT</pubDate><ttl>60</ttl><item><title>ubuntu11调节屏幕亮度</title><link>http://www.blogjava.net/waynedou/articles/366795.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Mon, 19 Dec 2011 12:16:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/articles/366795.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/366795.html</wfw:comment><comments>http://www.blogjava.net/waynedou/articles/366795.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/366795.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/366795.html</trackback:ping><description><![CDATA[引用自：<br />
<div><a href="http://ideapad.it168.com/thread-1591354-1-1.html">http://ideapad.it168.com/thread-1591354-1-1.html</a>(感谢) </div><img src ="http://www.blogjava.net/waynedou/aggbug/366795.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-19 20:16 <a href="http://www.blogjava.net/waynedou/articles/366795.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu11.04解决开关机分辨率问题</title><link>http://www.blogjava.net/waynedou/articles/366794.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Mon, 19 Dec 2011 12:02:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/articles/366794.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/366794.html</wfw:comment><comments>http://www.blogjava.net/waynedou/articles/366794.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/366794.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/366794.html</trackback:ping><description><![CDATA[引用自：
<div><a href="http://blog.csdn.net/chenvsa/article/details/7016633">http://blog.csdn.net/chenvsa/article/details/7016633</a>(感谢)</div><img src ="http://www.blogjava.net/waynedou/aggbug/366794.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-19 20:02 <a href="http://www.blogjava.net/waynedou/articles/366794.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ubuntu 11.10安装win7风格</title><link>http://www.blogjava.net/waynedou/archive/2011/12/07/365819.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Wed, 07 Dec 2011 15:05:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/archive/2011/12/07/365819.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365819.html</wfw:comment><comments>http://www.blogjava.net/waynedou/archive/2011/12/07/365819.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365819.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365819.html</trackback:ping><description><![CDATA[Ubuntu 11.10安装win7风格：<br />
<div><a href="http://www.linuxde.net/2011/10/1168.html">http://www.linuxde.net/2011/10/1168.html</a>(感谢)</div><img src ="http://www.blogjava.net/waynedou/aggbug/365819.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-07 23:05 <a href="http://www.blogjava.net/waynedou/archive/2011/12/07/365819.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>有意思的游戏</title><link>http://www.blogjava.net/waynedou/archive/2011/12/07/365720.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Wed, 07 Dec 2011 01:56:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/archive/2011/12/07/365720.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365720.html</wfw:comment><comments>http://www.blogjava.net/waynedou/archive/2011/12/07/365720.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365720.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365720.html</trackback:ping><description><![CDATA[draw a stickman：<a href="http://www.drawastickman.com/index.htm?o=66-69-32-67-82-69-65-84-73-86-69s69-86-69-82-89-32-68-65-89">http://www.drawastickman.com/index.htm?o=66-69-32-67-82-69-65-84-73-86-69s69-86-69-82-89-32-68-65-89</a><img src ="http://www.blogjava.net/waynedou/aggbug/365720.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-07 09:56 <a href="http://www.blogjava.net/waynedou/archive/2011/12/07/365720.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>编译系统图示</title><link>http://www.blogjava.net/waynedou/archive/2011/12/06/365707.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Tue, 06 Dec 2011 15:14:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/archive/2011/12/06/365707.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365707.html</wfw:comment><comments>http://www.blogjava.net/waynedou/archive/2011/12/06/365707.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365707.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365707.html</trackback:ping><description><![CDATA[<div><div>Linux系统中，c程序的编译过程：<br /><img src="http://www.blogjava.net/images/blogjava_net/waynedou/compilation_system.png" width="500" height="142" alt="" /></div></div><img src ="http://www.blogjava.net/waynedou/aggbug/365707.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-06 23:14 <a href="http://www.blogjava.net/waynedou/archive/2011/12/06/365707.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL常用函数</title><link>http://www.blogjava.net/waynedou/articles/365684.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Tue, 06 Dec 2011 07:18:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/articles/365684.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365684.html</wfw:comment><comments>http://www.blogjava.net/waynedou/articles/365684.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365684.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365684.html</trackback:ping><description><![CDATA[函数 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 用法 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 返回结果<br />(操作字符函数)<br />concat() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;concat(t1,t2,...) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;由t1,t2拼接而成的新字符串。<br />concat_ws() &nbsp; &nbsp;concat_ws(s,t1,t2,...) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;由t1st2s拼接而成新字符串。<br />length() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;length(s) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;字符串s的长度。<br />left() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;left(s,x) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;字符串s最左边的x个字符。<br />right() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;right(s,y) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;与上面函数相对应。<br />trim() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trim(s) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;去掉字符串s首尾的空格。<br />upper() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;upper(s) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 大写。<br />lower() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lower(s) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;小写。<br />replace() &nbsp; &nbsp; &nbsp; &nbsp;replace(s,t1,t2) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;将字符串s中的t1替换为t2。<br />substring() &nbsp; &nbsp;substring(s,n,m) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;截取s的字串，从第n个开始，取m个字符，n从1开始。<br /><div><br />(操作数字函数)</div>abs() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;abs(n) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n的绝对值。<br />ceiling() &nbsp; &nbsp; &nbsp; &nbsp; ceiling(n) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;不小于n的整数。<br />floor() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; floor(n) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n取整。<br />format() &nbsp; &nbsp; &nbsp; &nbsp;format(n,m) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 格式化n,精度为m,每三位用逗号隔开。<br />mod() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mod(n,m) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n对m取模:n%m。<br />pow() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pow(n,m) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n的m次方。<br />rand() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rand() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 从0到1.0的随机数。<br />round() &nbsp; &nbsp; &nbsp; &nbsp;round(n,m) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4舍5入(原文:n rounded to m&nbsp;decimal places)。<br />sqrt() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sqrt(n) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对n开根。 &nbsp;<br /><br /><br />(操作日期函数)<div><div>date() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;date(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;一个日期的值。</div><div>hour() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hour(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;获取小时。</div><div>minute() &nbsp; &nbsp; &nbsp; &nbsp;minute(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 获取分钟数。</div><div>second() &nbsp; &nbsp; &nbsp; &nbsp;second(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;获取秒钟数。</div><div>dayname() &nbsp; &nbsp; &nbsp;dayname(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 星期几。</div><div>dayofmonth() &nbsp;dayofmonth(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;日期号。<br />monthname() &nbsp;monthname(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;月份名。<br />month() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;month(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 月份号。</div><div>year() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; year(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 年份。<br />curdate() &nbsp; &nbsp; &nbsp; &nbsp; curdate() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 当前日期。</div><div>curtime() &nbsp; &nbsp; &nbsp; &nbsp; curtime() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 当前时间。</div><div>now() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;now() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 当前date。</div><div>unix_timestamp() &nbsp; unix_timestamp(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UNIX时间戳。</div><div>utc_timestamp() &nbsp;&nbsp;&nbsp;utc_timestamp(dt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UTC时间戳。</div></div><img src ="http://www.blogjava.net/waynedou/aggbug/365684.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-06 15:18 <a href="http://www.blogjava.net/waynedou/articles/365684.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Regular Expression基础</title><link>http://www.blogjava.net/waynedou/articles/365516.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Sun, 04 Dec 2011 12:55:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/articles/365516.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365516.html</wfw:comment><comments>http://www.blogjava.net/waynedou/articles/365516.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365516.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365516.html</trackback:ping><description><![CDATA[字符：<br />. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 任意字符，可以为字母，数字，空白等。<br />\w &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;字符(a-zA-Z)，数字(0-9)，下划线。<br />\W &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 非字母数字。。。与\w相反。<br />\d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;数字。<br />\D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 非数字。<br />\s &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;空格，Tab，回车，换行。<br />\S &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;与\s相反。<br />^ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 正则字符串的开始标记。<br />$ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.................结尾标记。<br />\b &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;空格符，用来判断串，非字符，非数字，或一些字符的开始或结尾。<br />[] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 取[]符号对中的任意一个，注意是一个。例如：[a-z]即一个小写字母。<br />[^] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 同样也是取一个但是，规则和[]相反。例如：[^a-z]即一个非小写字母。<br />| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;或者符号。例如： a|b 则匹配a或者b中的一个。<br />\ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;讲下一个字符标记为一个特殊字符、或一个原义字符、或一个向后引用、或一个八进制转义符。例如，'n'匹配字符"n"。 '\n'匹配一个换行符。序列 '\\' 匹配 "\" 而<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"\("则匹配 "("。<br /><div>更多参考：<a href="http://www.cnblogs.com/yirlin/archive/2006/04/12/373222.html">http://www.cnblogs.com/yirlin/archive/2006/04/12/373222.html</a>(感谢)<br /><br />有用的正则：<br /><br />邮件验证：/^[\w!#$%&amp;\&#8217;*+\/=?^`{|}~.-]+@(?:[a-z\d][a-z\d-]*(?:\.[a-z\d][a-z\d-]*)?)+\.(?:[a-z][a-z\d-]+)$/i<br />最后的/i是为了说明大小写不敏感的。<br /><br />日期：([01]?\d)[-\/ .]([0123]?\d)[-\/ .](\d{4})<br /><br />Web地址：((\bhttps?:\/\/)|(\bwww\.))\S*</div><img src ="http://www.blogjava.net/waynedou/aggbug/365516.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-04 20:55 <a href="http://www.blogjava.net/waynedou/articles/365516.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>加入Google Maps到你的网站</title><link>http://www.blogjava.net/waynedou/articles/365480.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Sat, 03 Dec 2011 14:02:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/articles/365480.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365480.html</wfw:comment><comments>http://www.blogjava.net/waynedou/articles/365480.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365480.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365480.html</trackback:ping><description><![CDATA[1.引入Google Maps的外部Javascript文件：<br />
<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;<span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">script&nbsp;</span><span style="color: #FF0000; ">src</span><span style="color: #0000FF; ">="http://maps.google.com/maps/api/js?sensor=false"</span><span style="color: #0000FF; ">&gt;&lt;/</span><span style="color: #800000; ">script</span><span style="color: #0000FF; ">&gt;</span></div>
2.引入JQuery文件：<br />
<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;&nbsp;<span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">script&nbsp;</span><span style="color: #FF0000; ">src</span><span style="color: #0000FF; ">="js/jquery-1.6.3.min.js"</span><span style="color: #0000FF; ">&gt;&lt;/</span><span style="color: #800000; ">script</span><span style="color: #0000FF; ">&gt;</span><br />
<span style="color: #008080; ">2</span>&nbsp;&nbsp;<span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">script&nbsp;</span><span style="color: #FF0000; ">src</span><span style="color: #0000FF; ">="js/jquery.gomap-1.3.2.min.js"</span><span style="color: #0000FF; ">&gt;&lt;/</span><span style="color: #800000; ">script</span><span style="color: #0000FF; ">&gt;</span></div>
3.在网页中加入&lt;div&gt;对，作为Maps的容器:<br />
<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;<span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">div&nbsp;</span><span style="color: #FF0000; ">id</span><span style="color: #0000FF; ">="map"</span><span style="color: #0000FF; ">&gt;</span><br />
<span style="color: #008080; ">2</span>&nbsp;&nbsp;&nbsp;<img src="http://www.blogjava.net/Images/dot.gif" alt="" /><br />
<span style="color: #008080; ">3</span>&nbsp;<span style="color: #0000FF; ">&lt;/</span><span style="color: #800000; ">div</span><span style="color: #0000FF; ">&gt;</span></div>
并通过CSS设置其大小等属性：<br />
<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;<span style="color: #800000; ">#map</span>{<span style="color: #FF0000; "><br />
</span><span style="color: #008080; ">2</span>&nbsp;<span style="color: #FF0000; ">&nbsp;width</span>:<span style="color: #0000FF; ">&nbsp;760px</span>;<span style="color: #FF0000; "><br />
</span><span style="color: #008080; ">3</span>&nbsp;<span style="color: #FF0000; ">&nbsp;height</span>:<span style="color: #0000FF; ">&nbsp;400px</span>;<span style="color: #FF0000; "><br />
</span><span style="color: #008080; ">4</span>&nbsp;<span style="color: #FF0000; "></span>}</div>
4.调用goMap插件的goMap()函数：<br />
<div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;$(document).ready(<span style="color: #0000FF; ">function</span>()&nbsp;{<br />
<span style="color: #008080; ">2</span>&nbsp; &nbsp; &nbsp;$('#map').goMap();<br />
<span style="color: #008080; ">3</span>&nbsp;});</div>
接下来就是一些设置地图center point之类的事了，使用latitude和longitude来设置当前地图所指向的区域：<br />
<div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
相反的使用：$.goMap.clearMarkers();
--><span style="color: #008080; ">1</span>&nbsp;$(document).ready(<span style="color: #0000FF; ">function</span>()&nbsp;{<br />
<span style="color: #008080; ">2</span>&nbsp; &nbsp;&nbsp;&nbsp;$('#map').goMap({<br />
<span style="color: #008080; ">3</span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;latitude&nbsp;:&nbsp;45.53940,<br />
<span style="color: #008080; ">4</span>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; longitude&nbsp;:&nbsp;-122.59025<br />
<span style="color: #008080; ">5</span>&nbsp; &nbsp; &nbsp;&nbsp;});&nbsp;<span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;end&nbsp;goMap</span><span style="color: #008000; "><br />
</span><span style="color: #008080; ">6</span>&nbsp;<span style="color: #008000; "></span>&nbsp;});&nbsp;<span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;end&nbsp;ready</span></div>
<div>关于latitude和longitude可以进入此网站：<a href="http://itouchmap.com/latlong.html">http://itouchmap.com/latlong.html</a>&nbsp;在搜索框中输入你想要定位的地址，然后点击&#8221;Go&#8221;按钮，就会出现相应的值。<br />
当然，goMap()函数同样可以直接使用地址来定位：</div>
<div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;$('#map').goMap({<br />
<span style="color: #008080; ">2</span>&nbsp;&nbsp;&nbsp;&nbsp;address&nbsp;:&nbsp;'某某地址'<br />
<span style="color: #008080; ">3</span>&nbsp;});&nbsp;<span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;end&nbsp;goMap</span></div>
也可以设定缩放级别：<br />
<div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;&nbsp;$('map').goMap({<br />
<span style="color: #008080; ">2</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;zoom:15<br />
<span style="color: #008080; ">3</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});</div>
一些常用的设置选项：<br />
<div>maptype: 'TERRAIN'</div>
<div>scaleControl : true</div>
<div>navigationControl : false<br />
<div>
<div>navigationControl: false</div>
<div>scrollwheel: false</div>
<div>disableDoubleClickZoom: true</div>
</div>
<div>mapTypeControl : false</div>
...<br />
<br />
5.增加标记(Marker)：<br />
<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;$('#map').goMap({<br />
<span style="color: #008080; ">2</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;markers&nbsp;:&nbsp;[<br />
<span style="color: #008080; ">3</span>&nbsp;&nbsp;&nbsp;{<br />
<span style="color: #008080; ">4</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;latitude&nbsp;:&nbsp;45.53940,<br />
<span style="color: #008080; ">5</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;longitude&nbsp;:&nbsp;-122.59025,<br />
<span style="color: #008080; ">6</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title&nbsp;:&nbsp;'Marker&nbsp;1'<br />
<span style="color: #008080; ">7</span>&nbsp;&nbsp;&nbsp;}<br />
<span style="color: #008080; ">8</span>&nbsp;]<br />
<span style="color: #008080; ">9</span>&nbsp;});&nbsp;<span style="color: #008000; ">//</span><span style="color: #008000; ">&nbsp;end&nbsp;goMap</span></div>
如果你想动态的添加标记，则可以使用如下方法：<br />
<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080; ">1</span>&nbsp;$.goMap.createMarker({<br />
<span style="color: #008080; ">2</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;latitude&nbsp;:&nbsp;45.53940,<br />
<span style="color: #008080; ">3</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;longitude&nbsp;:&nbsp;-122.59025,<br />
<span style="color: #008080; ">4</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title&nbsp;:&nbsp;'Marker&nbsp;1'<br />
<span style="color: #008080; ">5</span>&nbsp;});</div>
</div>
相反的使用：$.goMap.clearMarkers()或者<div style="display: inline-block; "><div>$.goMap.removeMarker('marker1')&nbsp; &nbsp;来去掉标记。</div></div><img src ="http://www.blogjava.net/waynedou/aggbug/365480.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-03 22:02 <a href="http://www.blogjava.net/waynedou/articles/365480.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JQuery的常用函数</title><link>http://www.blogjava.net/waynedou/articles/365436.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Fri, 02 Dec 2011 16:05:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/articles/365436.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365436.html</wfw:comment><comments>http://www.blogjava.net/waynedou/articles/365436.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365436.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365436.html</trackback:ping><description><![CDATA[JQuery函数众多，避免学过又忘记，慢慢积累，慢慢更新：<br />
<div>
<div>
<div>1.prepend(): 在element的开始位置加入内容<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; ">1</span>&nbsp;&nbsp;<span style="color: #0000FF; ">function</span>&nbsp;processData(data){<br /><span style="color: #008080; ">2</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">if</span>(data&nbsp;==&nbsp;'pass'){<br /><span style="color: #008080; ">3</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$('#content').html('&lt;p&gt;You&nbsp;have&nbsp;successfully&nbsp;logged&nbsp;on!&lt;/p&gt;');<br /><span style="color: #008080; ">4</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style="color: #0000FF; ">else</span>{<br /><span style="color: #008080; ">5</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$('#formwrapper').prepend('&lt;p&nbsp;id="fail"&gt;Incorrect&nbsp;login&nbsp;information.&nbsp;Please&nbsp;<span style="color: #0000FF; ">try</span>&nbsp;again&lt;/p&gt;');<br /><span style="color: #008080; ">6</span>&nbsp;&nbsp;}}<br /><span style="color: #008080; ">7</span>&nbsp;&nbsp;}</div>
</div>
</div>
</div>2.$.getJSON():获取JSon对象，语法$.getJSON('xxx.php',data,callback);<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; ">&nbsp;1</span>&nbsp;$.getJSON('contacts.php','limit=2',processContacts);<br /><span style="color: #008080; ">&nbsp;2</span>&nbsp;<span style="color: #0000FF; ">function</span>&nbsp;processContacts(data){<br /><span style="color: #008080; ">&nbsp;3</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0000FF; ">var</span>&nbsp;infoHTML&nbsp;=&nbsp;'';<br /><span style="color: #008080; ">&nbsp;4</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #008000; ">//</span><span style="color: #008000; ">loop&nbsp;through&nbsp;each&nbsp;object&nbsp;in&nbsp;the&nbsp;JSON&nbsp;data</span><span style="color: #008000; "><br /></span><span style="color: #008080; ">&nbsp;5</span>&nbsp;<span style="color: #008000; "></span>&nbsp;&nbsp;&nbsp;$.each(data,<span style="color: #0000FF; ">function</span>(contact,contactInfo){<br /><span style="color: #008080; ">&nbsp;6</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;infoHTML&nbsp;+=&nbsp;'&lt;p&gt;Contact:&nbsp;'&nbsp;+&nbsp;contactInfo.firstName;<br /><span style="color: #008080; ">&nbsp;7</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;infoHTML&nbsp;+=&nbsp;'&nbsp;'&nbsp;+&nbsp;contactInfo.lastName&nbsp;+&nbsp;'&lt;br&nbsp;/&gt;';<br /><span style="color: #008080; ">&nbsp;8</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;infoHTML&nbsp;+=&nbsp;'Phone:&nbsp;'&nbsp;+&nbsp;contactInfo.phone&nbsp;+&nbsp;'&lt;/p&gt;';<br /><span style="color: #008080; ">&nbsp;9</span>&nbsp;&nbsp;&nbsp;&nbsp;});<br /><span style="color: #008080; ">10</span>&nbsp;<br /><span style="color: #008080; ">11</span>&nbsp;$('#info').html(infoHTML);</div><img src ="http://www.blogjava.net/waynedou/aggbug/365436.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-03 00:05 <a href="http://www.blogjava.net/waynedou/articles/365436.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JQuery get()与post()</title><link>http://www.blogjava.net/waynedou/articles/365433.html</link><dc:creator>wayne woo</dc:creator><author>wayne woo</author><pubDate>Fri, 02 Dec 2011 15:40:00 GMT</pubDate><guid>http://www.blogjava.net/waynedou/articles/365433.html</guid><wfw:comment>http://www.blogjava.net/waynedou/comments/365433.html</wfw:comment><comments>http://www.blogjava.net/waynedou/articles/365433.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/waynedou/comments/commentRss/365433.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/waynedou/services/trackbacks/365433.html</trackback:ping><description><![CDATA[JQuery中Ajax交互主要是使用两个函数：get()与post()，即对应的Get和Post请求。<br />先说get()函数，通常情况下，这个函数有三个参数：1.请求URL &nbsp;2.数据 &nbsp; 3.处理函数 ， 即：get('xxx.php',formData,processData);<br />接下来说说formData，显然，data不可能总是一个简单的key-value，很可能是一个表单中的一组数据，这是JQuery也提供了一个很方便的函数：var formData = $(this).serialize();<br />然后，在处理函数中，processData有两个参数：1.数据 &nbsp; 2.状态(success,error) &nbsp;即 processData(formData,status);<br /><br />post()方法和get()方法在语法上大致相同，而他们的区别就在于Get请求和Post请求本质上的区别，而对两者的使用也是根据具体情况和两者的本质来取舍。<img src ="http://www.blogjava.net/waynedou/aggbug/365433.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/waynedou/" target="_blank">wayne woo</a> 2011-12-02 23:40 <a href="http://www.blogjava.net/waynedou/articles/365433.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>