﻿<?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-学无止境</title><link>http://www.blogjava.net/wawlian/</link><description /><language>zh-cn</language><lastBuildDate>Sun, 12 Apr 2026 06:06:46 GMT</lastBuildDate><pubDate>Sun, 12 Apr 2026 06:06:46 GMT</pubDate><ttl>60</ttl><item><title>JavaScript BOM学习笔记——window对象(1)</title><link>http://www.blogjava.net/wawlian/archive/2011/10/18/361512.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Tue, 18 Oct 2011 04:22:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/10/18/361512.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/361512.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/10/18/361512.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/361512.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/361512.html</trackback:ping><description><![CDATA[<div>BOM:Browser Object Model，浏览器对象模型。BOM是由一系列的对象组成的。其结构如下图所示。<br /><img style="width: 457px; height: 414px" border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/wawlian/BOM.png" width="457" height="414" /><br /><br />可以看出，window对象是整个BOM的核心，因此，先讨论window对象。<br />（1）使用框架集的情况下<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 使用框架集合的情况下，每个框架都由他自身的window对象表示，存放在frames集合中。可以通过数字或者名字对框架进行索引。看例子： 
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-family: Lucida Console; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /><span style="color: #0000ff">&lt;</span><span style="color: #800000">html</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frameset&nbsp;</span><span style="color: #ff0000">rows</span><span style="color: #0000ff">="100,*"</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="frame.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="topFrame"</span><span style="color: #ff0000">&nbsp;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frameset&nbsp;</span><span style="color: #ff0000">cols</span><span style="color: #0000ff">="50%,50%"</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="anothorFrame.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="leftFrame"</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="yetAnothorFrame.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="rightFrame"</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">frameset</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">frameset</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /></span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">html</span><span style="color: #0000ff">&gt;</span></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 我们可以通过window.frames[0]或者window.frames["topFrame"]引用顶层的框架。由于window对象是整个BOM的核心，因此再写上面的代码时，可以忽略window对象不写，直接写frames[0]或者frames["topFrame"]即可。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在框架中使用window对象，代表的是该框架本身。因此，还引入了top对象。该对象指向的是对顶层的框架，也就是浏览器窗口。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;此外，还有一个parent对象。顾名思义，parent指向该框架的父框架。看例子。<br />
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-family: Lucida Console; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /><span style="color: #008000">&lt;!--</span><span style="color: #008000">parent.html</span><span style="color: #008000">--&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">html</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frameset&nbsp;</span><span style="color: #ff0000">rows</span><span style="color: #0000ff">="100,*"</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="frame.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="topFrame"</span><span style="color: #ff0000">&nbsp;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frameset&nbsp;</span><span style="color: #ff0000">cols</span><span style="color: #0000ff">="50%,50%"</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="anothorFrame.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="leftFrame"</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="anotherframeset.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="rightFrame"</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">frameset</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">frameset</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /></span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">html</span><span style="color: #0000ff">&gt;</span></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 其中，anotherframeset.html的代码如下：<br />
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-family: Lucida Console; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /><span style="color: #008000">&lt;!--</span><span style="color: #008000">anotherframeset.html</span><span style="color: #008000">--&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">html</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">title</span><span style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">title</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">body</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frameset&nbsp;</span><span style="color: #ff0000">cols</span><span style="color: #0000ff">="100,*"</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="red.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="redFrame"</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">frame&nbsp;</span><span style="color: #ff0000">src</span><span style="color: #0000ff">="blue.html"</span><span style="color: #ff0000">&nbsp;name</span><span style="color: #0000ff">="blueFrame"</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">frameset</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" />&nbsp;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">body</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif"  alt="" /></span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">html</span><span style="color: #0000ff">&gt;</span></div></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果在red.html或者blue.html中，parent指向parent.html中的rightFrame。如果代码写在parent.html中的topFrame中，那么parent指向top对象，也就是浏览器窗口。还有一个指针self，它总是等于window。<br /><br />参考书：<br />《JavaScript高级编程》Nicolas C. Zakas著， 曹力 张欣 等译。  <img src ="http://www.blogjava.net/wawlian/aggbug/361512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-10-18 12:22 <a href="http://www.blogjava.net/wawlian/archive/2011/10/18/361512.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>访问Google速度慢(转)</title><link>http://www.blogjava.net/wawlian/archive/2011/10/14/361281.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Fri, 14 Oct 2011 06:56:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/10/14/361281.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/361281.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/10/14/361281.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/361281.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/361281.html</trackback:ping><description><![CDATA[<span class="Apple-style-span" style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; background-color: #efefef; "><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25px; background-color: #efefef; ">修改host,加入&nbsp;<br /><br />203.208.46.146 www.google.com&nbsp;<br />203.208.46.147 www.google.com.hk&nbsp;<br />203.208.46.132 clients1.google.com&nbsp;<br />203.208.46.149 mail.google.com&nbsp;<br />203.208.46.161 chatenabled.mail.google.com&nbsp;<br />203.208.46.161 mail-attachment.googleusercontent.com</span>哈哈，找到解决办法，速度明细加快&nbsp;</span><img src ="http://www.blogjava.net/wawlian/aggbug/361281.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-10-14 14:56 <a href="http://www.blogjava.net/wawlian/archive/2011/10/14/361281.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jQuey常用选择器（二）</title><link>http://www.blogjava.net/wawlian/archive/2011/06/17/352534.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Fri, 17 Jun 2011 08:51:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/06/17/352534.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/352534.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/06/17/352534.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/352534.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/352534.html</trackback:ping><description><![CDATA[<div>以下内容均是来自《锋利的jQuery》，发到这里，纯属做个笔记，方便查阅。<br />直接看代码：</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; font-family: Lucida Console;">&nbsp;1</span>&nbsp;<span style="color: #0000ff; font-family: Lucida Console;">&lt;!</span><span style="color: #ff00ff; font-family: Lucida Console;">DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;HTML&nbsp;4.01&nbsp;Transitional//EN"<br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;2</span>&nbsp;<span style="color: #ff00ff; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"http://www.w3.org/TR/html4/loose.dtd"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;3</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">html</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;4</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">head</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;5</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">title</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;&lt;/</span><span style="color: #800000; font-family: Lucida Console;">title</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;6</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">script&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">type</span><span style="color: #0000ff; font-family: Lucida Console;">="text/javascript"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;src</span><span style="color: #0000ff; font-family: Lucida Console;">="jquery-1.3.1.js"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;7</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;8</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">script</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">&nbsp;9</span>&nbsp;<span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">10</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">script&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">type</span><span style="color: #0000ff; font-family: Lucida Console;">="text/javascript"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">11</span>&nbsp;<span style="background-color: #f5f5f5; color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$().ready(<br /></span><span style="color: #008080; font-family: Lucida Console;">12</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #0000ff; font-family: Lucida Console;">function</span><span style="background-color: #f5f5f5; color: #000000; font-family: Lucida Console;">()&nbsp;{<br /></span><span style="color: #008080; font-family: Lucida Console;">13</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">14</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">表单对象属性过滤选择器</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">15</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">1改变表单内可用元素的值</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">16</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">$('#form1&nbsp;input:enabled').val("这里变化了");</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">17</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">18</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">2改变表单内不可用元素的值</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">19</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">$('#form1&nbsp;input:disabled').val("这里变化了");</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">20</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">21</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">3选取多选框中选中的个数</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">22</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">alert($('#form1&nbsp;input:checked').length);</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">23</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">24</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">//</span><span style="background-color: #f5f5f5; color: #008000; font-family: Lucida Console;">4选取下拉框中选中的内容</span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">25</span>&nbsp;<span style="background-color: #F5F5F5; color: #008000; "></span><span style="background-color: #f5f5f5; color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert($('#form1&nbsp;select&nbsp;:selected').length);<br /></span><span style="color: #008080; font-family: Lucida Console;">26</span>&nbsp;<span style="background-color: #f5f5f5; color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080; font-family: Lucida Console;">27</span>&nbsp;<span style="background-color: #f5f5f5; color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br /></span><span style="color: #008080; font-family: Lucida Console;">28</span>&nbsp;<span style="background-color: #F5F5F5; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">script</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">29</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">head</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">30</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">body</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">31</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">form&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">action</span><span style="color: #0000ff; font-family: Lucida Console;">=""</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;id</span><span style="color: #0000ff; font-family: Lucida Console;">="form1"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">32</span>&nbsp;<span style="color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可用元素：</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">name</span><span style="color: #0000ff; font-family: Lucida Console;">="add"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="可用文本框"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">33</span>&nbsp;<span style="color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;不可用元素：</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">name</span><span style="color: #0000ff; font-family: Lucida Console;">="email"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;disabled</span><span style="color: #0000ff; font-family: Lucida Console;">="disabled"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="不可用文本框"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">34</span>&nbsp;<span style="color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可用元素：</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">name</span><span style="color: #0000ff; font-family: Lucida Console;">="che"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="可用文本框"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">35</span>&nbsp;<span style="color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;不可用元素：</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">name</span><span style="color: #0000ff; font-family: Lucida Console;">="name"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;disabled</span><span style="color: #0000ff; font-family: Lucida Console;">="disabled"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="不可用文本框"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">36</span>&nbsp;<span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">37</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">38</span>&nbsp;<span style="color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;多选框：</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">39</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">type</span><span style="color: #0000ff; font-family: Lucida Console;">="checkbox"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;name</span><span style="color: #0000ff; font-family: Lucida Console;">="newsletter"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;checked</span><span style="color: #0000ff; font-family: Lucida Console;">="checked"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="test1"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; font-family: Lucida Console;">test1<br /></span><span style="color: #008080; font-family: Lucida Console;">40</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">type</span><span style="color: #0000ff; font-family: Lucida Console;">="checkbox"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;name</span><span style="color: #0000ff; font-family: Lucida Console;">="newsletter"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="test2"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; font-family: Lucida Console;">test2<br /></span><span style="color: #008080; font-family: Lucida Console;">41</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">type</span><span style="color: #0000ff; font-family: Lucida Console;">="checkbox"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;name</span><span style="color: #0000ff; font-family: Lucida Console;">="newsletter"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="test3"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; font-family: Lucida Console;">test3<br /></span><span style="color: #008080; font-family: Lucida Console;">42</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">type</span><span style="color: #0000ff; font-family: Lucida Console;">="checkbox"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;name</span><span style="color: #0000ff; font-family: Lucida Console;">="newsletter"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;checked</span><span style="color: #0000ff; font-family: Lucida Console;">="checked"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="test4"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; font-family: Lucida Console;">test4<br /></span><span style="color: #008080; font-family: Lucida Console;">43</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">input&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">type</span><span style="color: #0000ff; font-family: Lucida Console;">="checkbox"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;name</span><span style="color: #0000ff; font-family: Lucida Console;">="newsletter"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;value</span><span style="color: #0000ff; font-family: Lucida Console;">="test5"</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; font-family: Lucida Console;">test5<br /></span><span style="color: #008080; font-family: Lucida Console;">44</span>&nbsp;<span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">45</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">div</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;&lt;/</span><span style="color: #800000; font-family: Lucida Console;">div</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">46</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">47</span>&nbsp;<span style="color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下拉列表:</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">48</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">select&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">name</span><span style="color: #0000ff; font-family: Lucida Console;">="test"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;multiple</span><span style="color: #0000ff; font-family: Lucida Console;">="multiple"</span><span style="color: #ff0000; font-family: Lucida Console;">&nbsp;style</span><span style="color: #0000ff; font-family: Lucida Console;">="height:100px"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">49</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">浙江</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">50</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">selected</span><span style="color: #0000ff; font-family: Lucida Console;">="selected"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">湖南</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">51</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">北京</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">52</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">selected</span><span style="color: #0000ff; font-family: Lucida Console;">="selected"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">天津</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">53</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">广州</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">54</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">湖北</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">55</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">select</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">56</span>&nbsp;<span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">57</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">58</span>&nbsp;<span style="color: #000000; font-family: Lucida Console;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下拉列表2：</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">br</span><span style="color: #0000ff; font-family: Lucida Console;">/&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">59</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">select&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">name</span><span style="color: #0000ff; font-family: Lucida Console;">="test2"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">60</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">浙江</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">61</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">湖南</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">62</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option&nbsp;</span><span style="color: #ff0000; font-family: Lucida Console;">selected</span><span style="color: #0000ff; font-family: Lucida Console;">="selected"</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">北京</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">63</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">天津</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">64</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">广州</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">65</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; font-family: Lucida Console;">湖北</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">option</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">66</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">select</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">67</span>&nbsp;<span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">68</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;</span><span style="color: #800000; font-family: Lucida Console;">div</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;&lt;/</span><span style="color: #800000; font-family: Lucida Console;">div</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">69</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">form</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">70</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">body</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span><span style="color: #000000; "><br /></span><span style="color: #008080; font-family: Lucida Console;">71</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000ff; font-family: Lucida Console;">&lt;/</span><span style="color: #800000; font-family: Lucida Console;">html</span><span style="color: #0000ff; font-family: Lucida Console;">&gt;</span></div><img src ="http://www.blogjava.net/wawlian/aggbug/352534.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-06-17 16:51 <a href="http://www.blogjava.net/wawlian/archive/2011/06/17/352534.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jQuey常用选择器（一）</title><link>http://www.blogjava.net/wawlian/archive/2011/06/17/352530.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Fri, 17 Jun 2011 08:11:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/06/17/352530.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/352530.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/06/17/352530.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/352530.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/352530.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 以下内容均是来自《锋利的jQuery》，发到这里，纯属做个笔记，方便查阅。直接看代码：Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->&nbsp;&nbsp;1&nbsp;&lt;!DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;...&nbsp;&nbsp;<a href='http://www.blogjava.net/wawlian/archive/2011/06/17/352530.html'>阅读全文</a><img src ="http://www.blogjava.net/wawlian/aggbug/352530.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-06-17 16:11 <a href="http://www.blogjava.net/wawlian/archive/2011/06/17/352530.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Flash Builder切换语言</title><link>http://www.blogjava.net/wawlian/archive/2011/06/15/352354.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Wed, 15 Jun 2011 06:04:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/06/15/352354.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/352354.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/06/15/352354.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/352354.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/352354.html</trackback:ping><description><![CDATA[MyEclipse 9.0 安装了Flash Builder4.5，界面菜单都变成中文的了，完全不适应。<br /><div>如果不习惯中文界面， 改回英文界面吧。只需要为 flash builder 加上启动参数 <br />" -clean -nl en_US " <br />完成后记得将 -clean 去掉，以免每次启动 flash builder 都执行清理动作而浪费时间。</div><img src ="http://www.blogjava.net/wawlian/aggbug/352354.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-06-15 14:04 <a href="http://www.blogjava.net/wawlian/archive/2011/06/15/352354.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Windows 7 SP1无法安装oracle10g 11g的解决办法(转)</title><link>http://www.blogjava.net/wawlian/archive/2011/06/02/351631.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Thu, 02 Jun 2011 13:13:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/06/02/351631.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/351631.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/06/02/351631.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/351631.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/351631.html</trackback:ping><description><![CDATA[<p><span>下载正确的版本，然后<wbr>修改refhost.<wbr>xml文件</span></p>
<p><span><br />然后解压，在目录中找<wbr>到refhost.x<wbr>ml(有两个，我的一<wbr>个是在stage\p<wbr>rereq\db目录<wbr>下，一个是在stag<wbr>e\prereq\d<wbr>b_prereqs\<wbr>db目录下)进行添加<wbr>修，添加如下代码： <br /><br />&lt;!--Micros<wbr>oft Windows 7--&gt; <br />&lt;OPERATING<wbr>_SYSTEM&gt; <br />&lt;VERSION VALUE="6.1<wbr>"/&gt; <br />&lt;/OPERATIN<wbr>G_SYSTEM&gt; <br /><br />注：如果安装的是客户<wbr>端，将路径中的db改<wbr>为client即可。<wbr> <br /><br />而后还要修改一个or<wbr>aparam.ini<wbr>文件,在instal<wbr>l目录下 <br /><br />先在[Certifi<wbr>ed Versions] <br />#You can customise error message shown for failure, provide value for CERTIFIED_<wbr>VERSION_FA<wbr>ILURE_MESS<wbr>AGE <br />#Windows=5<wbr>.0,5.1,5.2<wbr>,6.0,6.1 <br /><br />注：即在#Windo<wbr>ws=5.0,5.1<wbr>,5.2后面添加 ,6.0,6.1 <br /><br />再添加下面代码： <br /><br />#[Windows-<wbr>6.1-requir<wbr>ed] <br />#Minimum display colours for OUI to run <br />MIN_DISPLA<wbr>Y_COLORS=2<wbr>56 <br />#Minimum CPU speed required for OUI <br />#CPU=300 <br />#[Windows-<wbr>6.1-option<wbr>al] <br /><br /><br />以管理员身份运行se<wbr>tup.exe <br /></span></p><img src ="http://www.blogjava.net/wawlian/aggbug/351631.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-06-02 21:13 <a href="http://www.blogjava.net/wawlian/archive/2011/06/02/351631.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>插入排序</title><link>http://www.blogjava.net/wawlian/archive/2011/05/25/350998.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Wed, 25 May 2011 06:02:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/05/25/350998.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/350998.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/05/25/350998.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/350998.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/350998.html</trackback:ping><description><![CDATA[<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="font-family: Lucida Console; color: #008080">&nbsp;1</span>&nbsp;<span style="font-family: Lucida Console; color: #008000">//</span><span style="font-family: Lucida Console; color: #008000">升序插入排序</span><span style="color: #008000"><br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;2</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">public</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">static</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">[]&nbsp;insertSort(</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">[]&nbsp;a)&nbsp;{<br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">for</span><span style="font-family: Lucida Console; color: #000000">(</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">&nbsp;i&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">;&nbsp;i&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&lt;</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a.length;&nbsp;i</span><span style="font-family: Lucida Console; color: #000000">++</span><span style="font-family: Lucida Console; color: #000000">)&nbsp;{<br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">&nbsp;j&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;i</span><span style="font-family: Lucida Console; color: #000000">-</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">;<br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">&nbsp;tmp&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a[i];<br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;6</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">while</span><span style="font-family: Lucida Console; color: #000000">(j&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&gt;=</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #000000">0</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&amp;&amp;</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a[j]&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&gt;</span><span style="font-family: Lucida Console; color: #000000">&nbsp;tmp)&nbsp;{<br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;7</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[j</span><span style="font-family: Lucida Console; color: #000000">+</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">]&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a[j];<br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;8</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;j&nbsp;</span><span style="font-family: Lucida Console; color: #000000">-</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">;<br /></span><span style="font-family: Lucida Console; color: #008080">&nbsp;9</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="font-family: Lucida Console; color: #008080">10</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[j</span><span style="font-family: Lucida Console; color: #000000">+</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">]&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;tmp;<br /></span><span style="font-family: Lucida Console; color: #008080">11</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="font-family: Lucida Console; color: #008080">12</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="font-family: Lucida Console; color: #008080">13</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="font-family: Lucida Console; color: #008080">14</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">return</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a;<br /></span><span style="font-family: Lucida Console; color: #008080">15</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="font-family: Lucida Console; color: #008080">16</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="font-family: Lucida Console; color: #008080">17</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #008000">//</span><span style="font-family: Lucida Console; color: #008000">降序插入排序</span><span style="color: #008000"><br /></span><span style="font-family: Lucida Console; color: #008080">18</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">public</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">static</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">[]&nbsp;insertSortDesc(</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">[]&nbsp;a)&nbsp;{<br /></span><span style="font-family: Lucida Console; color: #008080">19</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">for</span><span style="font-family: Lucida Console; color: #000000">(</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">&nbsp;j</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">;&nbsp;j&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&lt;</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a.length;&nbsp;j</span><span style="font-family: Lucida Console; color: #000000">++</span><span style="font-family: Lucida Console; color: #000000">)&nbsp;{<br /></span><span style="font-family: Lucida Console; color: #008080">20</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">&nbsp;i&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;j&nbsp;</span><span style="font-family: Lucida Console; color: #000000">-</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">;<br /></span><span style="font-family: Lucida Console; color: #008080">21</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">int</span><span style="font-family: Lucida Console; color: #000000">&nbsp;key&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a[j];<br /></span><span style="font-family: Lucida Console; color: #008080">22</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">while</span><span style="font-family: Lucida Console; color: #000000">(i&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&gt;=</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #000000">0</span><span style="color: #000000">&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&amp;&amp;</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a[i]&nbsp;</span><span style="font-family: Lucida Console; color: #000000">&lt;</span><span style="font-family: Lucida Console; color: #000000">&nbsp;key)&nbsp;{<br /></span><span style="font-family: Lucida Console; color: #008080">23</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[i</span><span style="font-family: Lucida Console; color: #000000">+</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">]&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a[i];<br /></span><span style="font-family: Lucida Console; color: #008080">24</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #000000">--</span><span style="font-family: Lucida Console; color: #000000">i;<br /></span><span style="font-family: Lucida Console; color: #008080">25</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="font-family: Lucida Console; color: #008080">26</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a[i</span><span style="font-family: Lucida Console; color: #000000">+</span><span style="font-family: Lucida Console; color: #000000">1</span><span style="font-family: Lucida Console; color: #000000">]&nbsp;</span><span style="font-family: Lucida Console; color: #000000">=</span><span style="font-family: Lucida Console; color: #000000">&nbsp;key;<br /></span><span style="font-family: Lucida Console; color: #008080">27</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="font-family: Lucida Console; color: #008080">28</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: Lucida Console; color: #0000ff">return</span><span style="font-family: Lucida Console; color: #000000">&nbsp;a;<br /></span><span style="font-family: Lucida Console; color: #008080">29</span>&nbsp;<span style="font-family: Lucida Console; color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}</span></div><img src ="http://www.blogjava.net/wawlian/aggbug/350998.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-05-25 14:02 <a href="http://www.blogjava.net/wawlian/archive/2011/05/25/350998.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Flex4 滚动条沉底[转]</title><link>http://www.blogjava.net/wawlian/archive/2011/04/24/348924.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Sun, 24 Apr 2011 09:16:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/04/24/348924.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/348924.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/04/24/348924.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/348924.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/348924.html</trackback:ping><description><![CDATA[<p id="post_content_8997506385">在flex4中，滚动条是属于group的，flex4中没有了直接的垂直和水平滚动条，取而代之的是用一个group里面包含了一个scroller，这个scroller有2个属性，垂直和水平滚动条。<br />
<br />
如果TextArea要隐藏或者显示滚动条，用style<br />
horizontalScrollPolicy和verticalScrollPolicy，而不是3的mx里面的属性。<br />
<br />
而将滚动条移至底端，不能直接设置verticalScrollPosition，而用以下方法<br />
&lt;s:TextArea x="30" y="10" width="175" id="txt"/&gt;<br />
&lt;fx:Script&gt;<br />
&nbsp;&nbsp;&nbsp; txt.text = "xxxx...";<br />
&nbsp;&nbsp;&nbsp; txt.validateNow();<br />
&nbsp;&nbsp;&nbsp; txt.scroller.verticalScrollBar.value = txt.scroller.verticalScrollBar.maximum;<br />
&lt;/fx:Script&gt;<br />
<br />
<br />
validateNow方法验证并更新此对象的属性和布局，如果需要的话重绘对象。<br />
这个方法比较重要，因为在flex里面不会像flash设置了text立即就会显示文本的高度和宽度。非要重绘，或者，监听enterFrame或者其它事件，等控件外观更新完成后，才能真正获取到宽度，高度，verticalScrollBar.maximum，等文字相关属性。</p>
</cc><br />
<img src ="http://www.blogjava.net/wawlian/aggbug/348924.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-04-24 17:16 <a href="http://www.blogjava.net/wawlian/archive/2011/04/24/348924.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>数据库插入数据返回当前主键ID值方法随记</title><link>http://www.blogjava.net/wawlian/archive/2011/04/23/348898.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Sat, 23 Apr 2011 15:35:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/04/23/348898.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/348898.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/04/23/348898.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/348898.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/348898.html</trackback:ping><description><![CDATA[<a href="http://piziwang.iteye.com/blog/479825">http://piziwang.iteye.com/blog/479825</a>&nbsp;
<img src ="http://www.blogjava.net/wawlian/aggbug/348898.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-04-23 23:35 <a href="http://www.blogjava.net/wawlian/archive/2011/04/23/348898.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java中使用相对路径</title><link>http://www.blogjava.net/wawlian/archive/2011/04/22/348834.html</link><dc:creator>wawlian</dc:creator><author>wawlian</author><pubDate>Fri, 22 Apr 2011 12:46:00 GMT</pubDate><guid>http://www.blogjava.net/wawlian/archive/2011/04/22/348834.html</guid><wfw:comment>http://www.blogjava.net/wawlian/comments/348834.html</wfw:comment><comments>http://www.blogjava.net/wawlian/archive/2011/04/22/348834.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wawlian/comments/commentRss/348834.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wawlian/services/trackbacks/348834.html</trackback:ping><description><![CDATA[<p>在开发过程中，我们经常会遇到读取配置文件的情况，对于配置文件的读取，根据环境等情况又各有不同，一般情况下，如果从非jar包中使用相对/路径，比较简单，就不在累述了，而在很多<br />
情况下，我们需要把我们的class打包成jar文件，进行使用，这时就会发现，我们先前如果没有考虑到这些，可能就行不通了，那么，该如何解决呢？方法如下<br />
：<br />
有如下路径 ：<br />
Web-info--|--&gt;classes---&gt;conf--&gt;config.properties<br />
&nbsp;&nbsp; |--&gt;lib<br />
此时加入我们需要读取config.properties，在不使用jar包时，使用如下方式读取，不失为一种方法：<br />
File f = new File(this.getClass().getResource("/").getPath());<br />
f = new File(f.getPath() + "/conf/config.properties");<br />
注：f.getPath()即为当class所在的绝对路径。如：c:\javasrc\web-inf\classes<br />
然后,对文件对象进行处理，就能把配置信息读取出来了，但是加入如上class被打包成jar文件，那么，在程序执行到这里时，就会无法找到配置文件，那么该如何处理呢？<br />
处理方法如下：<br />
String s_config="conf/config.properties";<br />
&nbsp;InputStream in = ClassLoader.getSystemResourceAsStream(s_config);<br />
if( in == null ){<br />
&nbsp;System.out.println( " 打开 " + s_config + "失败！" );<br />
}else<br />
{<br />
Properties properties = new Properties();<br />
properties.load(in);<br />
//<br />
//接下来就可以通过properties.getProperty(String obj)方法对进行配置信息读取了<br />
}</p>
<p>&nbsp;</p>
<p>本文来自CSDN博客，<a href="http://blog.csdn.net/wjmmml/archive/2004/09/27/118404.aspx"><font color="#000000">转自：</font>http://blog.csdn.net/wjmmml/archive/2004/09/27/118404.aspx</a></p>
<img src ="http://www.blogjava.net/wawlian/aggbug/348834.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wawlian/" target="_blank">wawlian</a> 2011-04-22 20:46 <a href="http://www.blogjava.net/wawlian/archive/2011/04/22/348834.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>