<?xml version="1.0" encoding="GBK" ?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dcterms="http://purl.org/dc/terms/">
 <channel>
  	  <title><![CDATA[KillKiss]]></title>
	  <link>http://13480.blog.163.com</link>
	  <description><![CDATA[努力扮好每个角色 扮演好自己的角色！QQ:41320487]]></description>
	  <language>zh-CN</language>
	  <pubDate>Tue, 19 Aug 2008 08:44:25 +0800</pubDate>
	  <lastBuildDate>Tue, 19 Aug 2008 08:44:25 +0800</lastBuildDate>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <generator><![CDATA[NetEase Space]]></generator>
	  <managingEditor><![CDATA[13480]]></managingEditor>
	  <webMaster><![CDATA[KILLKISS]]></webMaster>
		  <ttl>120</ttl>
	  <image>
	  	<title><![CDATA[KillKiss]]></title>
	  	<url>http://ava.blog.163.com/photo/gFTSWlCnkfTrvz34HPTbnw==/452330287574727615.jpg</url>
	  	<link>http://13480.blog.163.com</link>
	  </image>
  <item>
  	<title><![CDATA[JdbcTemplate]]></title>	
    <link>http://13480.blog.163.com/blog/static/16285514200871810451749</link>
    <description><![CDATA[<div><P style="TEXT-INDENT: 2em">1.您可以使用JdbcTemplate的execute()方法執行SQL DDL语句，例如：</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" border=0>jdbcTemplate.execute("CREATE&nbsp;TABLE&nbsp;USER&nbsp;(user_id&nbsp;integer,&nbsp;name&nbsp;varchar(100))");</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">使用JdbcTemplate进行查询时，可以使用queryForXXX()等方法，例如使用queryForInt()方法传回user表格中的数据数目： jdbcTemplate.quertForInt("select count(*) from user"); 也可以使用queryForObject()传回一个查询后的对象，例如传回一个String对象：</P>
<P style="TEXT-INDENT: 2em">String name=(String)jdbcTemplate.queryForObject(</P>
<P style="TEXT-INDENT: 2em">　　　　&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "selcet name from user where id=?",</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new Object[]{id},</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java.lang.String.class);</P>
<P style="TEXT-INDENT: 2em">)</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">单独查询某个数据并赋值给特定对象时：</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedBlockStart.gif" border=0><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ContractedBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;BaseObj&nbsp;getBaseObj(final&nbsp;int&nbsp;ID)&nbsp;<IMG src="http://www.blogjava.net/Images/dot.gif" border=0>{</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;sql&nbsp;=&nbsp;"select&nbsp;*&nbsp;from&nbsp;"&nbsp;+&nbsp;DB_TABLE_NAME&nbsp;+&nbsp;"&nbsp;where&nbsp;NewsId="&nbsp;+&nbsp;ID;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockStart.gif" border=0><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ContractedSubBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BaseObj&nbsp;obj&nbsp;=(BaseObj)&nbsp;getJdbcTemplate().query(sql,new&nbsp;ResultSetExtractor()<IMG src="http://www.blogjava.net/Images/dot.gif" border=0>{</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockStart.gif" border=0><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ContractedSubBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;Object&nbsp;extractData(ResultSet&nbsp;rs)&nbsp;throws&nbsp;SQLException,DataAccessException&nbsp;<IMG src="http://www.blogjava.net/Images/dot.gif" border=0>{</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockStart.gif" border=0><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ContractedSubBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(rs.next())&nbsp;<IMG src="http://www.blogjava.net/Images/dot.gif" border=0>{</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NewsObj&nbsp;news&nbsp;=&nbsp;new&nbsp;NewsObj();</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setID(rs.getInt("NewsID"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setTitle(rs.getString("NewsTitle"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setBigClass(rs.getInt("BigClassId"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setNewsContent(rs.getString("NewsContent"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setNewsKey(rs.getString("NewsKey"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setNewsAuthor(rs.getString("NewsAuthor"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setImg(rs.getBoolean("isImg"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news.setNewsFrom(rs.getString("NewsFrom"));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;news;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;null;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;obj;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedBlockEnd.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">上面两个例子都是传回单独一笔数据，如果要传回多笔数据，则可以使用queryForList()方法，例如：</P>
<P style="TEXT-INDENT: 2em">List rows=jdbcTemplate().queryForList("select * from user where id="+id.intValue()); 传回的list中包括的是map对象，每个map对象代表查询结果中的一笔数据，每笔数据包括多个字段，要取得字段中的值，就要使用字段名作为key,例如：</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp; Iterator it=rows.iterator();</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp; while(it.hasNext()){</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Map result=(Map)it.next();</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(userMap.get("id"));</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(userMap.get("name"));</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(userMap.get("age"));</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp; }</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">在查询的同时，你可以在返回结果之前先进行一些处理，这就要实现RowCallbackHandler接口</P>
<P style="TEXT-INDENT: 2em">public User find(Integer id){</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp; final User user=new User();</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp; jdbcTemplate.query("select * from user where id=?",new Object[]{id},</P>
<P style="TEXT-INDENT: 2em">&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new RowCallBackHandler(){</P>
<P style="TEXT-INDENT: 2em">&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void proccessRow(ResultSet rs){ </P>
<P style="TEXT-INDENT: 2em">&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user.setId(new Integer(rs.getInt("id")));</P>
<P style="TEXT-INDENT: 2em">&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uset.setName(rs.getString("name"));&nbsp;&nbsp;&nbsp;&nbsp;</P>
<P style="TEXT-INDENT: 2em">&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P>
<P style="TEXT-INDENT: 2em">&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;});</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp; return user;</P>
<P style="TEXT-INDENT: 2em">&nbsp;}</P>
<P style="TEXT-INDENT: 2em">如果一次要返回多个查询结果对象，则可以实现RowMapper接口</P>
<P style="TEXT-INDENT: 2em">public class UserRowMapper implements RowMapper{</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public Object MapRow(ResultSet rsmint rowNum) throws SQLException{</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User user=new User();</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user.setId(new Integer(rs.getInt("id")));</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user.setName(rs.getString("name"));</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return user;</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P style="TEXT-INDENT: 2em">}</P>
<P style="TEXT-INDENT: 2em">使用RowMapper查询单笔数据</P>
<P style="TEXT-INDENT: 2em">public User find(Integer id){</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User user=(User)jdbcTemplate.queryForObject("select * from user where id=?",new Object[]{id},</P>
<P style="TEXT-INDENT: 2em">&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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new UserRowMapper());</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return user;</P>
<P style="TEXT-INDENT: 2em">}</P>
<P style="TEXT-INDENT: 2em">使用RowMapper查询多笔数据</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedBlockStart.gif" border=0><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ContractedBlock.gif" border=0>class&nbsp;UserRowMapper&nbsp;implements&nbsp;RowMapper&nbsp;<IMG src="http://www.blogjava.net/Images/dot.gif" border=0>{</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;Object&nbsp;mapRow(ResultSet&nbsp;rs,int&nbsp;index)&nbsp;throws&nbsp;SQLException&nbsp;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockStart.gif" border=0><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ContractedSubBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG src="http://www.blogjava.net/Images/dot.gif" border=0>{</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;User&nbsp;u&nbsp;=&nbsp;new&nbsp;User();</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;u.setId(rs.getString(”ID”));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;u.setName(rs.getString(”Name”));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;u.setPassword(rs.getString(”Password”));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;u;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedBlockEnd.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" border=0>public&nbsp;List&nbsp;select(String&nbsp;where)</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedBlockStart.gif" border=0><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ContractedBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;<IMG src="http://www.blogjava.net/Images/dot.gif" border=0>{</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&nbsp;list;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;sql&nbsp;=&nbsp;“select&nbsp;*&nbsp;from&nbsp;admin&nbsp;“+where;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list&nbsp;=&nbsp;jdbcTemplate.query(sql,new&nbsp;RowMapperResultReader(new&nbsp;UserRowMapper()));</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;list;</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/InBlock.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/ExpandedBlockEnd.gif" border=0>&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" border=0></P>
<P style="TEXT-INDENT: 2em"><IMG src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" border=0></P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">传回的users对象中，包括了从数据库查询出来的结果，并已经封装成uer对象</P>
<P style="TEXT-INDENT: 2em">JdbcTemplate语句使用:</P>
<P style="TEXT-INDENT: 2em">1、使用JdbcTemplate的execute()方法执行SQL语句 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>jdbcTemplate.execute("CREATE&nbsp;TABLE&nbsp;USER&nbsp;(user_id&nbsp;integer,&nbsp;name&nbsp;varchar(100))");&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">2、如果是UPDATE或INSERT,可以用update()方法。 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>jdbcTemplate.update("INSERT&nbsp;INTO&nbsp;USER&nbsp;VALUES('"&nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;user.getId()&nbsp;+&nbsp;"',&nbsp;'"&nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;user.getName()&nbsp;+&nbsp;"',&nbsp;'"&nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;user.getSex()&nbsp;+&nbsp;"',&nbsp;'"&nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;user.getAge()&nbsp;+&nbsp;"')"); &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">3、带参数的更新 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>jdbcTemplate.update("UPDATE&nbsp;USER&nbsp;SET&nbsp;name&nbsp;=&nbsp;?&nbsp;WHERE&nbsp;user_id&nbsp;=&nbsp;?",&nbsp;new&nbsp;Object[]&nbsp;{name,&nbsp;id});&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>jdbcTemplate.update("INSERT&nbsp;INTO&nbsp;USER&nbsp;VALUES(?,&nbsp;?,&nbsp;?,&nbsp;?)",&nbsp;new&nbsp;Object[]&nbsp;{user.getId(),&nbsp;user.getName(),&nbsp;user.getSex(),&nbsp;user.getAge()}); &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">4、使用JdbcTemplate进行查询时，使用queryForXXX()等方法 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>int&nbsp;count&nbsp;=&nbsp;jdbcTemplate.queryForInt("SELECT&nbsp;COUNT(*)&nbsp;FROM&nbsp;USER");&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>String&nbsp;name&nbsp;=&nbsp;(String)&nbsp;jdbcTemplate.queryForObject("SELECT&nbsp;name&nbsp;FROM&nbsp;USER&nbsp;WHERE&nbsp;user_id&nbsp;=&nbsp;?",&nbsp;new&nbsp;Object[]&nbsp;{id},&nbsp;java.lang.String.class);&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>List&nbsp;rows&nbsp;=&nbsp;jdbcTemplate.queryForList("SELECT&nbsp;*&nbsp;FROM&nbsp;USER");&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>List&nbsp;rows&nbsp;=&nbsp;jdbcTemplate.queryForList("SELECT&nbsp;*&nbsp;FROM&nbsp;USER"); &nbsp;&nbsp; 
</LI><LI>Iterator&nbsp;it&nbsp;=&nbsp;rows.iterator(); &nbsp;&nbsp; 
</LI><LI>while(it.hasNext())&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;Map&nbsp;userMap&nbsp;=&nbsp;(Map)&nbsp;it.next(); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;System.out.print(userMap.get("user_id")&nbsp;+&nbsp;"\t"); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;System.out.print(userMap.get("name")&nbsp;+&nbsp;"\t"); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;System.out.print(userMap.get("sex")&nbsp;+&nbsp;"\t"); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(userMap.get("age")&nbsp;+&nbsp;"\t"); &nbsp;&nbsp; 
</LI><LI>} &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">JdbcTemplate将我们使用的JDBC的流程封装起来，包括了异常的捕捉、SQL的执行、查询结果的转换等等。spring大量使用Template Method模式来封装固定流程的动作，XXXTemplate等类别都是基于这种方式的实现。 </P>
<P style="TEXT-INDENT: 2em">除了大量使用Template Method来封装一些底层的操作细节，spring也大量使用callback方式类回调相关类别的方法以提供JDBC相关类别的功能，使传统的JDBC的使用者也能清楚了解spring所提供的相关封装类别方法的使用。</P>
<P style="TEXT-INDENT: 2em">JDBC的PreparedStatement </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>final&nbsp;String&nbsp;id&nbsp;=&nbsp;user.getId(); &nbsp;&nbsp; 
</LI><LI>final&nbsp;String&nbsp;name&nbsp;=&nbsp;user.getName(); &nbsp;&nbsp; 
</LI><LI>final&nbsp;String&nbsp;sex&nbsp;=&nbsp;user.getSex()&nbsp;+&nbsp;""; &nbsp;&nbsp; 
</LI><LI>final&nbsp;int&nbsp;age&nbsp;=&nbsp;user.getAge(); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp; 
</LI><LI>jdbcTemplate.update("INSERT&nbsp;INTO&nbsp;USER&nbsp;VALUES(?,&nbsp;?,&nbsp;?,&nbsp;?)", &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;PreparedStatementSetter()&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&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;public&nbsp;void&nbsp;setValues(PreparedStatement&nbsp;ps)&nbsp;throws&nbsp;SQLException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&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;ps.setString(1,&nbsp;id); &nbsp;&nbsp; 
</LI><LI>&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;ps.setString(2,&nbsp;name);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
</LI><LI>&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;ps.setString(3,&nbsp;sex); &nbsp;&nbsp; 
</LI><LI>&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;ps.setInt(4,&nbsp;age); &nbsp;&nbsp; 
</LI><LI>&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; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>final&nbsp;User&nbsp;user&nbsp;=&nbsp;new&nbsp;User(); &nbsp;&nbsp; 
</LI><LI>jdbcTemplate.query("SELECT&nbsp;*&nbsp;FROM&nbsp;USER&nbsp;WHERE&nbsp;user_id&nbsp;=&nbsp;?", &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;Object[]&nbsp;{id}, &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;RowCallbackHandler()&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;void&nbsp;processRow(ResultSet&nbsp;rs)&nbsp;throws&nbsp;SQLException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&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;user.setId(rs.getString("user_id")); &nbsp;&nbsp; 
</LI><LI>&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;user.setName(rs.getString("name")); &nbsp;&nbsp; 
</LI><LI>&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;user.setSex(rs.getString("sex").charAt(0)); &nbsp;&nbsp; 
</LI><LI>&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;user.setAge(rs.getInt("age")); &nbsp;&nbsp; 
</LI><LI>&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; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>class&nbsp;UserRowMapper&nbsp;implements&nbsp;RowMapper&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;Object&nbsp;mapRow(ResultSet&nbsp;rs,&nbsp;int&nbsp;index)&nbsp;throws&nbsp;SQLException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;User&nbsp;user&nbsp;=&nbsp;new&nbsp;User(); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user.setId(rs.getString("user_id")); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user.setName(rs.getString("name")); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user.setSex(rs.getString("sex").charAt(0)); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user.setAge(rs.getInt("age")); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;user; &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp; 
</LI><LI>} &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp; 
</LI><LI>public&nbsp;List&nbsp;findAllByRowMapperResultReader()&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;sql&nbsp;=&nbsp;"SELECT&nbsp;*&nbsp;FROM&nbsp;USER"; &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;jdbcTemplate.query(sql,&nbsp;new&nbsp;RowMapperResultReader(new&nbsp;UserRowMapper())); &nbsp;&nbsp; 
</LI><LI>} &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">在getUser(id)里面使用UserRowMapper </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>public&nbsp;User&nbsp;getUser(final&nbsp;String&nbsp;id)&nbsp;throws&nbsp;DataAccessException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;sql&nbsp;=&nbsp;"SELECT&nbsp;*&nbsp;FROM&nbsp;USER&nbsp;WHERE&nbsp;user_id=?"; &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;Object[]&nbsp;params&nbsp;=&nbsp;new&nbsp;Object[]&nbsp;{&nbsp;id&nbsp;}; &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;List&nbsp;list&nbsp;=&nbsp;jdbcTemplate.query(sql,&nbsp;params,&nbsp;new&nbsp;RowMapperResultReader(new&nbsp;UserRowMapper())); &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;(User)&nbsp;list.get(0); &nbsp;&nbsp; 
</LI><LI>} &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">网上收集 </P>
<P style="TEXT-INDENT: 2em">org.springframework.jdbc.core.PreparedStatementCreator 返回预编译SQL 不能于Object[]一起用 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>public&nbsp;PreparedStatement&nbsp;createPreparedStatement(Connection&nbsp;con)&nbsp;throws&nbsp;SQLException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;return&nbsp;con.prepareStatement(sql); &nbsp;&nbsp; 
</LI><LI>} &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">1.增删改 </P>
<P style="TEXT-INDENT: 2em">org.springframework.jdbc.core.JdbcTemplate 类(必须指定数据源dataSource) </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>template.update("insert&nbsp;into&nbsp;web_person&nbsp;values(?,?,?)",Object[]); &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">或 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>template.update("insert&nbsp;into&nbsp;web_person&nbsp;values(?,?,?)",new&nbsp;PreparedStatementSetter(){&nbsp;匿名内部类&nbsp;只能访问外部最终局部变量 &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp; 
</LI><LI>&nbsp;public&nbsp;void&nbsp;setValues(PreparedStatement&nbsp;ps)&nbsp;throws&nbsp;SQLException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;ps.setInt(index++,3); &nbsp;&nbsp; 
</LI><LI>}); &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">org.springframework.jdbc.core.PreparedStatementSetter 接口 处理预编译SQL </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>public&nbsp;void&nbsp;setValues(PreparedStatement&nbsp;ps)&nbsp;throws&nbsp;SQLException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;ps.setInt(index++,3); &nbsp;&nbsp; 
</LI><LI>} &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">2.查询JdbcTemplate.query(String,[Object[]/PreparedStatementSetter],RowMapper/RowCallbackHandler) </P>
<P style="TEXT-INDENT: 2em">org.springframework.jdbc.core.RowMapper 记录映射接口 处理结果集 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>public&nbsp;Object&nbsp;mapRow(ResultSet&nbsp;rs,&nbsp;int&nbsp;arg1)&nbsp;throws&nbsp;SQLException&nbsp;{&nbsp;&nbsp;&nbsp;int表当前行数 &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;person.setId(rs.getInt("id")); &nbsp;&nbsp; 
</LI><LI>} &nbsp;&nbsp; 
</LI><LI>List&nbsp;template.query("select&nbsp;*&nbsp;from&nbsp;web_person&nbsp;where&nbsp;id=?",Object[],RowMapper); &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">org.springframework.jdbc.core.RowCallbackHandler 记录回调管理器接口 处理结果集 </P>
<P style="TEXT-INDENT: 2em">代码</P>
<P style="TEXT-INDENT: 2em"></P>
<P style="TEXT-INDENT: 2em">
</P><OL>
<LI>template.query("select&nbsp;*&nbsp;from&nbsp;web_person&nbsp;where&nbsp;id=?",Object[],new&nbsp;RowCallbackHandler(){ &nbsp;&nbsp; 
</LI><LI>&nbsp;public&nbsp;void&nbsp;processRow(ResultSet&nbsp;rs)&nbsp;throws&nbsp;SQLException&nbsp;{ &nbsp;&nbsp; 
</LI><LI>&nbsp;&nbsp;person.setId(rs.getInt("id")); &nbsp;&nbsp; 
</LI><LI>}); &nbsp;&nbsp;</LI></OL>
<P></P>
<P style="TEXT-INDENT: 2em"></P></div>]]></description>
	    <author><![CDATA[KILLKISS]]></author>
	    <comments>http://13480.blog.163.com/blog/static/16285514200871810451749</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://13480.blog.163.com/blog/static/16285514200871810451749</guid>
    <pubDate>Mon, 18 Aug 2008 10:45:01 +0800</pubDate>
    <dcterms:modified>2008-08-18T14:11:16+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[我在项目管理中所用的文档]]></title>	
    <link>http://13480.blog.163.com/blog/static/162855142008769489813</link>
    <description><![CDATA[<div>a) 需求文档（客户编写或者客户口述、我们编写。编写人：项目经理）<FONT size=1><FONT color=#ffffff><FONT >项目管理者联盟，项目管理问题。</FONT><BR><FONT >http://bbs.mypm.net</FONT><BR></FONT></FONT>b) 需求分析报告（根据需求文档进行分析编写。编写人：项目经理）<FONT ></FONT><BR><FONT ></FONT><BR>c) 详细设计（有时候是和需求分析报告整合在一起，说明系统的整体说明，包括系统整体架构说明、数据结构说明、分解的模块功能说明等等。编写人：系统设计师或项目经理）<FONT size=1><FONT color=#ffffff><FONT >http://bbs.mypm.net</FONT><BR><FONT ></FONT><BR></FONT></FONT>d) 项目开发总体计划书（对项目开发做总体规划、人员安排、任务分配等。编写人：项目经理）<FONT size=1><FONT color=#ffffff><FONT >项目管理者联盟，项目管理问题。</FONT><BR><FONT ></FONT><BR></FONT></FONT>e) 项目开发任务书（针对开发人员、项目被分解的模块，制定开发任务，包括模块实现功能，实现方法。编写人：项目负责人）<FONT ></FONT><BR><FONT ></FONT><BR>f) 项目实施情况记录（记录从项目立项到实施完成的所有活动记录，包括各个阶段开发和完成的时间、实施人员、历次例会讨论会记录、中间和客户的沟通情况等等，能够通过该文件清楚的知道项目的整个开发流程）<FONT ></FONT><BR><FONT ></FONT><BR>g) 和客户沟通交流产生的来往文件<FONT ></FONT><BR><FONT ></FONT><BR>h) 测试计划书<FONT ></FONT><BR><FONT ></FONT><BR>i) 测试报告书<FONT ></FONT><BR><FONT ></FONT><BR>j) 该项目的所有问题汇总。（包括我们自测发现的和客户提交的）<FONT ></FONT><BR><FONT ></FONT><BR>k) 个人的工作记录和相关总结等<FONT ></FONT><BR><FONT ></FONT><BR>l) 用户使用手册（大型网站项目和软件项目需要编写）<FONT ></FONT><BR><FONT ></FONT><BR>m) 系统技术说明书。（技术开发角度细致描述该项目，使用对象为项目维护人员或者接手的新组员，让其能尽快进入工作）<FONT ></FONT><BR></div>]]></description>
	    <author><![CDATA[KILLKISS]]></author>
	    <comments>http://13480.blog.163.com/blog/static/162855142008769489813</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://13480.blog.163.com/blog/static/162855142008769489813</guid>
    <pubDate>Wed, 6 Aug 2008 21:48:09 +0800</pubDate>
    <dcterms:modified>2008-08-06T21:48:09+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[如何让新成员快速融入项目团队]]></title>	
    <link>http://13480.blog.163.com/blog/static/1628551420087692112672</link>
    <description><![CDATA[<div><P>我们知道，人对于陌生的环境或多或少总会有一种“恐惧感”；新加入项目团队的项目成员也不例会，他们往往对老成员有一种“敬畏感”。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　　如果新成员的这种感觉持续时间过长或不能消除，则将会在很大程度上影响项目团队的绩效。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　　如何让新成员尽快融入项目团队、尽快找到一种“如家”的感觉从而更快更好地为项目服务，应该是所有项目经理所期盼的。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　　以下结合作者的项目团队建设经验，谈谈如何让新成员快速融入项目团队可以采取的一些措施，供大家参考。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　　<STRONG>措施一：项目经理从心里接收和关怀新成员</STRONG>&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　　从新成员进入项目团队的第一天开始，项目经理就应该从心底里将这些新成员视为“团队家庭”中的一份子并给予充分的关怀。这种关怀不仅仅是工作方面，还应该包括生活方面。特别是对于“人生地不熟”的新成员，更应该多了解和关心他们生活方面的困难，让新成员感觉到“家长”的温暖。这一措施对消除新成员的“陌生感”和“孤独感”非常有效。&nbsp; <FONT size=1><FONT color=#ffffff><FONT >项目管理者联盟，项目管理问题。</FONT><BR><FONT ></FONT><BR></FONT></FONT>　　<STRONG>措施二：尽早让新老成员互相认识&nbsp; <FONT size=1><FONT color=#ffffff><FONT >http://bbs.mypm.net</FONT><BR></FONT></FONT></STRONG><FONT ></FONT><BR>　　项目经理需要尽早利用合适的机会（可以利用正式的团队会议或活动，也可以利用日常工作的间隙），将新成员介绍给老成员、将老成员介绍给新成员，让新老成员互相认识。这一措施为新成员“试探”老成员铺垫了“途径”并能尽早让新老成员彼此实现交往和交流，从而有利于新老成员互相了解和关系建立。&nbsp; <FONT size=1><FONT color=#ffffff><FONT >项目管理者联盟，项目管理问题。</FONT><BR><FONT >本文转自项目管理者联盟</FONT><BR></FONT></FONT>　　<STRONG>措施三：尽早让新成员了解团队情况&nbsp; <FONT ></FONT><BR></STRONG><FONT ></FONT><BR>　　项目经理需要尽早将团队的基本情况（包括团队使命、目标、工作任务、成员组成情况等）详细地介绍给新成员，让他们做到“心中有数”。对新成员来说，对即将或已经加入的新团队信息了解得越多，他们心里就越有底，对团队和工作的“恐惧感”也就会“烟消云散”。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　　<STRONG>措施四：尽可能让新成员参与团队讨论和决策&nbsp; <FONT ></FONT><BR></STRONG><FONT ></FONT><BR>　　只要有机会，项目经理就需要鼓励新成员积极参与团队事务的讨论和决策，让他们尽快形成一种“主人翁”的责任感和荣誉感。这样不仅可以加快新成员对团队工作目标、工作方法的认同，而且可以让他们尽快、主动地承接团队可能委派给他们的工作和责任。&nbsp; <FONT size=1><FONT color=#ffffff><FONT >http://bbs.mypm.net</FONT><BR><FONT ></FONT><BR></FONT></FONT>　　<STRONG>措施五：为新老成员搭建一个充分的沟通平台&nbsp; <FONT ></FONT><BR></STRONG></P>
<P>项目经理需要注意创造机会让新老成员之间实现最广泛的沟通和交流。这样随着新老成员彼此之间认识和交往的不断加深，新老成员就会“融为一体”，而不会滋生出项目团队中的“小团体”。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　<STRONG>　措施六：项目经理一视同仁地对待新老成员&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR></STRONG>　　项目经理需要一视同仁，公平、公正地对待新老成员，绝对不要让新成员感觉到“厚此薄彼”。团队有了“公平、公正”的处事方法，新成员才会更加积极主动地放手工作，从而会加快新成员融入整个团队的进程。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　<STRONG>　措施七：项目经理需要倡导并践行“求真务实”的工作风尚&nbsp; <FONT ></FONT><BR></STRONG><FONT size=1><FONT color=#ffffff><FONT >http://blog.mypm.net</FONT><BR></FONT></FONT>　　项目经理需要倡导并践行“求真、务实、奉献”的工作风尚，同时需要鲜明地体现“多劳多得”的用人政策。这样一方面可以刺激新成员（当然也包括老员工）的奉献热情，另一方面也会让新老成员都积极向上，从而使整个团队关系融洽、积极进取。&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR>　<STRONG>　措施八：积极引导，让团队形成一种彼此尊重、互相信任的团队氛围&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR></STRONG>　　一个彼此尊重、互相信任的团队，能无形中让新成员放松心中的“戒备”。这样一方面可以让新成员不至于“怕这怕那”而畏缩不前，另一方面也能让新成员在如此氛围的“熏陶”下也养成“互相尊重互相信任”的好习惯，从而为获得团队的高绩效创造了有利条件。&nbsp; <FONT ></FONT><BR><FONT size=1><FONT color=#ffffff><FONT >本文转自项目管理者联盟</FONT><BR></FONT></FONT>　<STRONG>　结束语&nbsp; <FONT ></FONT><BR><FONT ></FONT><BR></STRONG>　　“心是爱的乐坊”，如何让新成员快速融入我们的项目团队，需要项目经理“用心”去引导和耕耘。&nbsp;&nbsp;</P></div>]]></description>
	    <author><![CDATA[KILLKISS]]></author>
	    <comments>http://13480.blog.163.com/blog/static/1628551420087692112672</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://13480.blog.163.com/blog/static/1628551420087692112672</guid>
    <pubDate>Wed, 6 Aug 2008 21:21:12 +0800</pubDate>
    <dcterms:modified>2008-08-06T21:21:12+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[申式管理]]></title>	
    <link>http://13480.blog.163.com/blog/static/1628551420087564330863</link>
    <description><![CDATA[<div><P>理念：1.和为贵 2，和而不同。3，仁和。4，以人为本。5，道，理，法，情。</P>
<P>起点：1，修已安人：道理，事理，情理，义理。</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2，三戒：戒斗，戒色，戒得。</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3，身份的转变：1规则的转变，2思维方式的转变，3工作转变。</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4，处理得与失：不要更多计较得失。</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5，和谐：1，高层关系2，同级关系3，下属关系。4，外部关系。</P>
<P>基础：1，战略方向。2，文件精神。</P></div>]]></description>
	    <author><![CDATA[KILLKISS]]></author>
	    <comments>http://13480.blog.163.com/blog/static/1628551420087564330863</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://13480.blog.163.com/blog/static/1628551420087564330863</guid>
    <pubDate>Tue, 5 Aug 2008 18:43:30 +0800</pubDate>
    <dcterms:modified>2008-08-05T18:44:41+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[ ExtJS2.0开发与实践笔记1]]></title>	
    <link>http://13480.blog.163.com/blog/static/16285514200863143418258</link>
    <description><![CDATA[<div>ExtJS2.0中提供了一整套的web表示层UI解决方案，令我们可以非常轻易的实现平时较为复杂的javascript操作，在此我以表示层开发中使用较多的Dialog与Form功能进行一次ExtJS2.0的实现演示。<BR><BR>ExtJS2.0的配置及运行方式请参阅<A href="http://blog.csdn.net/cping1982/archive/2008/03/11/2166968.aspx" target=_blank> ExtJS2.0开发与实践笔记[0]-初识ExtJS</A><BR><BR><SPAN style="FONT-WEIGHT: bold">DialogExt.js (此中包含了ExtJS的确定，分支选择，进度条，输入框等四个应用实例)</SPAN><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: rgb(230,230,230) 0% 50%; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 95%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial">
<DIV><IMG none'; document.getElementById('_0_10_Open_Text').style.display='none'; document.getElementById('_0_10_Closed_Image').style.display='inline'; document.getElementById('_0_10_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_0_10_Closed_Text').style.display='none'; document.getElementById('_0_10_Open_Image').style.display='inline'; document.getElementById('_0_10_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</SPAN><SPAN ><SPAN style="COLOR: rgb(0,128,0)">/*</SPAN><SPAN style="COLOR: rgb(0,128,0)">*<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;*&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">*/</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG none'; document.getElementById('_36_2471_Open_Text').style.display='none'; document.getElementById('_36_2471_Closed_Image').style.display='inline'; document.getElementById('_36_2471_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_36_2471_Closed_Text').style.display='none'; document.getElementById('_36_2471_Open_Image').style.display='inline'; document.getElementById('_36_2471_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;DialogExt</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{&nbsp;<BR><IMG none'; document.getElementById('_43_92_Open_Text').style.display='none'; document.getElementById('_43_92_Closed_Image').style.display='inline'; document.getElementById('_43_92_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_43_92_Closed_Text').style.display='none'; document.getElementById('_43_92_Open_Image').style.display='inline'; document.getElementById('_43_92_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</SPAN><SPAN ><SPAN style="COLOR: rgb(0,128,0)">/*</SPAN><SPAN style="COLOR: rgb(0,128,0)">*<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;追踪输出<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;{Object}&nbsp;str<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">*/</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG none'; document.getElementById('_121_167_Open_Text').style.display='none'; document.getElementById('_121_167_Closed_Image').style.display='inline'; document.getElementById('_121_167_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_121_167_Closed_Text').style.display='none'; document.getElementById('_121_167_Open_Image').style.display='inline'; document.getElementById('_121_167_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;trace</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">(str)</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">在ExtJS2.0中，log由Ext统一调度</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ext.log(str);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">设置Ext.Button别名为Button</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;Button</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext.Button;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">设置Ext.MessageBox别名为MessageBox</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;MessageBox</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext.MessageBox;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">变量设置，用于保存DialogExt自身及当中键钮</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;root;&nbsp;&nbsp;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;btn0;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;btn1;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;btn2;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;btn3;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">返回操作</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_420_2468_Open_Text').style.display='none'; document.getElementById('_420_2468_Closed_Image').style.display='inline'; document.getElementById('_420_2468_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_420_2468_Closed_Text').style.display='none'; document.getElementById('_420_2468_Open_Image').style.display='inline'; document.getElementById('_420_2468_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">return</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">初始化函数</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_461_2343_Open_Text').style.display='none'; document.getElementById('_461_2343_Closed_Image').style.display='inline'; document.getElementById('_461_2343_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_461_2343_Closed_Text').style.display='none'; document.getElementById('_461_2343_Open_Image').style.display='inline'; document.getElementById('_461_2343_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;init:</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">设定root等于this</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">this</SPAN><SPAN style="COLOR: rgb(0,0,0)">;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">生成Ext按钮，绑定数据到Element，renderTo为绑定的按钮名，text为输出内容</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_601_626_Open_Text').style.display='none'; document.getElementById('_601_626_Closed_Image').style.display='inline'; document.getElementById('_601_626_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_601_626_Closed_Text').style.display='none'; document.getElementById('_601_626_Open_Image').style.display='inline'; document.getElementById('_601_626_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn0</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;Button(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{renderTo:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">a</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,text:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">确定选项</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_658_687_Open_Text').style.display='none'; document.getElementById('_658_687_Closed_Image').style.display='inline'; document.getElementById('_658_687_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_658_687_Closed_Text').style.display='none'; document.getElementById('_658_687_Open_Image').style.display='inline'; document.getElementById('_658_687_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn1</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;Button(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{renderTo:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">b</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,text:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">yes/no选项</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_719_745_Open_Text').style.display='none'; document.getElementById('_719_745_Closed_Image').style.display='inline'; document.getElementById('_719_745_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_719_745_Closed_Text').style.display='none'; document.getElementById('_719_745_Open_Image').style.display='inline'; document.getElementById('_719_745_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn2</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;Button(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{renderTo:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">c</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,text:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">输入框选项</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_777_803_Open_Text').style.display='none'; document.getElementById('_777_803_Closed_Image').style.display='inline'; document.getElementById('_777_803_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_777_803_Closed_Text').style.display='none'; document.getElementById('_777_803_Open_Image').style.display='inline'; document.getElementById('_777_803_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn3</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;Button(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{renderTo:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">d</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,text:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">进度条选项</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">确定选项</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_866_1008_Open_Text').style.display='none'; document.getElementById('_866_1008_Closed_Image').style.display='inline'; document.getElementById('_866_1008_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_866_1008_Closed_Text').style.display='none'; document.getElementById('_866_1008_Open_Image').style.display='inline'; document.getElementById('_866_1008_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn0.on(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">click</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.alert(<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">消息框</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext很简单。</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root.onResult);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">yes/no选项</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_1078_1226_Open_Text').style.display='none'; document.getElementById('_1078_1226_Closed_Image').style.display='inline'; document.getElementById('_1078_1226_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1078_1226_Closed_Text').style.display='none'; document.getElementById('_1078_1226_Open_Image').style.display='inline'; document.getElementById('_1078_1226_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn1.on(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">click</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">(evt)&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.confirm(<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">提问</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext是否很容易掌握？</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root.onResult);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">输入框选项</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_1293_1435_Open_Text').style.display='none'; document.getElementById('_1293_1435_Closed_Image').style.display='inline'; document.getElementById('_1293_1435_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1293_1435_Closed_Text').style.display='none'; document.getElementById('_1293_1435_Open_Image').style.display='inline'; document.getElementById('_1293_1435_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn2.on(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">click</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">(evt)&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.prompt(<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">输入框</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">输入内容：</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root.onResult);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">进度条选项</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_1499_2331_Open_Text').style.display='none'; document.getElementById('_1499_2331_Closed_Image').style.display='inline'; document.getElementById('_1499_2331_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1499_2331_Closed_Text').style.display='none'; document.getElementById('_1499_2331_Open_Image').style.display='inline'; document.getElementById('_1499_2331_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;btn3.on(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">click</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">生成进度条，分别设定了标题，信息，宽，是否自动前进进度，是否自动关闭进度5项</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_1591_1782_Open_Text').style.display='none'; document.getElementById('_1591_1782_Closed_Image').style.display='inline'; document.getElementById('_1591_1782_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1591_1782_Closed_Text').style.display='none'; document.getElementById('_1591_1782_Open_Image').style.display='inline'; document.getElementById('_1591_1782_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.show(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">进度条</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">初始化中…</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">240</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progress:</SPAN><SPAN style="COLOR: rgb(0,0,255)">true</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;closable:</SPAN><SPAN style="COLOR: rgb(0,0,255)">false</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">进度条定时处理</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_1847_2184_Open_Text').style.display='none'; document.getElementById('_1847_2184_Closed_Image').style.display='inline'; document.getElementById('_1847_2184_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1847_2184_Closed_Text').style.display='none'; document.getElementById('_1847_2184_Open_Image').style.display='inline'; document.getElementById('_1847_2184_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;f</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">(v)&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG none'; document.getElementById('_1886_2165_Open_Text').style.display='none'; document.getElementById('_1886_2165_Closed_Image').style.display='inline'; document.getElementById('_1886_2165_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1886_2165_Closed_Text').style.display='none'; document.getElementById('_1886_2165_Open_Image').style.display='inline'; document.getElementById('_1886_2165_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">return</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG none'; document.getElementById('_1919_2048_Open_Text').style.display='none'; document.getElementById('_1919_2048_Closed_Image').style.display='inline'; document.getElementById('_1919_2048_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1919_2048_Closed_Text').style.display='none'; document.getElementById('_1919_2048_Open_Image').style.display='inline'; document.getElementById('_1919_2048_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">if</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;(v</SPAN><SPAN style="COLOR: rgb(0,0,0)">&lt;=</SPAN><SPAN style="COLOR: rgb(0,0,0)">10</SPAN><SPAN style="COLOR: rgb(0,0,0)">)&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&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;MessageBox.updateProgress(<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&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;v</SPAN><SPAN style="COLOR: rgb(0,0,0)">/</SPAN><SPAN style="COLOR: rgb(0,0,0)">10</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">读取进度&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">+</SPAN><SPAN style="COLOR: rgb(0,0,0)">v</SPAN><SPAN style="COLOR: rgb(0,0,0)">+</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">/10</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_2055_2143_Open_Text').style.display='none'; document.getElementById('_2055_2143_Closed_Image').style.display='inline'; document.getElementById('_2055_2143_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_2055_2143_Closed_Text').style.display='none'; document.getElementById('_2055_2143_Open_Image').style.display='inline'; document.getElementById('_2055_2143_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">else</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&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;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">隐藏Ext消息框</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&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;MessageBox.hide();<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">进度条时间设定</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_2253_2317_Open_Text').style.display='none'; document.getElementById('_2253_2317_Closed_Image').style.display='inline'; document.getElementById('_2253_2317_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_2253_2317_Closed_Text').style.display='none'; document.getElementById('_2253_2317_Open_Image').style.display='inline'; document.getElementById('_2253_2317_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">for</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;(</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;i</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">1</SPAN><SPAN style="COLOR: rgb(0,0,0)">;i</SPAN><SPAN style="COLOR: rgb(0,0,0)">&lt;=</SPAN><SPAN style="COLOR: rgb(0,0,0)">11</SPAN><SPAN style="COLOR: rgb(0,0,0)">;i</SPAN><SPAN style="COLOR: rgb(0,0,0)">++</SPAN><SPAN style="COLOR: rgb(0,0,0)">)&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(f(i),i</SPAN><SPAN style="COLOR: rgb(0,0,0)">*</SPAN><SPAN style="COLOR: rgb(0,0,0)">1000</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">当前操作对象输出</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_2403_2462_Open_Text').style.display='none'; document.getElementById('_2403_2462_Closed_Image').style.display='inline'; document.getElementById('_2403_2462_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_2403_2462_Closed_Text').style.display='none'; document.getElementById('_2403_2462_Open_Image').style.display='inline'; document.getElementById('_2403_2462_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onResult:</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">(button,text)</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trace(</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">点击按钮:</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">+</SPAN><SPAN style="COLOR: rgb(0,0,0)">button</SPAN><SPAN style="COLOR: rgb(0,0,0)">+</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;输出文本:</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">+</SPAN><SPAN style="COLOR: rgb(0,0,0)">text);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">();<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">设定onReady,Ext将在dom加载完毕后自动调用其中操作</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext.onReady(DialogExt.init,DialogExt,</SPAN><SPAN style="COLOR: rgb(0,0,255)">true</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>Dialog.html<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: rgb(230,230,230) 0% 50%; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 95%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial">
<DIV><IMG alt="" ></SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">script</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" ></SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">script</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" ></SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">script</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">head</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">body</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">&lt;!--</SPAN><SPAN style="COLOR: rgb(0,128,0)">设置Element，以供DialogExt.js调用</SPAN><SPAN style="COLOR: rgb(0,128,0)">--&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">table&nbsp;</SPAN><SPAN style="COLOR: rgb(255,0,0)">cellspacing</SPAN><SPAN style="COLOR: rgb(0,0,255)">="5"</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">tr</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">div&nbsp;</SPAN><SPAN style="COLOR: rgb(255,0,0)">id</SPAN><SPAN style="COLOR: rgb(0,0,255)">="a"</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">div</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">div&nbsp;</SPAN><SPAN style="COLOR: rgb(255,0,0)">id</SPAN><SPAN style="COLOR: rgb(0,0,255)">="b"</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">div</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">div&nbsp;</SPAN><SPAN style="COLOR: rgb(255,0,0)">id</SPAN><SPAN style="COLOR: rgb(0,0,255)">="c"</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">div</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;</SPAN><SPAN style="COLOR: rgb(128,0,0)">div&nbsp;</SPAN><SPAN style="COLOR: rgb(255,0,0)">id</SPAN><SPAN style="COLOR: rgb(0,0,255)">="d"</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">div</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">td</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">tr</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">table</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">body</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,255)">&lt;/</SPAN><SPAN style="COLOR: rgb(128,0,0)">html</SPAN><SPAN style="COLOR: rgb(0,0,255)">&gt;</SPAN></DIV></DIV><BR>效果图如下：<BR><IMG alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/cping1982/20080311_ext_dialogshow.gif"><BR><BR><BR><BR>form应用实例，在此我演示了Ext中简单的Form生成方式。<BR><BR><SPAN style="FONT-WEIGHT: bold">FormExt.js</SPAN><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: rgb(230,230,230) 0% 50%; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 95%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial">
<DIV><IMG none'; document.getElementById('_18_1766_Open_Text').style.display='none'; document.getElementById('_18_1766_Closed_Image').style.display='inline'; document.getElementById('_18_1766_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_18_1766_Closed_Text').style.display='none'; document.getElementById('_18_1766_Open_Image').style.display='inline'; document.getElementById('_18_1766_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="COLOR: rgb(0,0,0)">FormExt</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG none'; document.getElementById('_47_66_Open_Text').style.display='none'; document.getElementById('_47_66_Closed_Image').style.display='inline'; document.getElementById('_47_66_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_47_66_Closed_Text').style.display='none'; document.getElementById('_47_66_Open_Image').style.display='inline'; document.getElementById('_47_66_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;trace</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">(str)</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ext.log(str);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">1.1版为Ext.form.Form</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;Form</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext.form.FormPanel;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;MessageBox</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext.MessageBox;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;TextField</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">Ext.form.TextField;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">变量设置</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;root;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;form;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;textField0;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;textField1;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;textField2;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">var</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;textField3;<BR><IMG none'; document.getElementById('_338_1761_Open_Text').style.display='none'; document.getElementById('_338_1761_Closed_Image').style.display='inline'; document.getElementById('_338_1761_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_338_1761_Closed_Text').style.display='none'; document.getElementById('_338_1761_Open_Image').style.display='inline'; document.getElementById('_338_1761_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,255)">return</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">初始化FormExt</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_384_1755_Open_Text').style.display='none'; document.getElementById('_384_1755_Closed_Image').style.display='inline'; document.getElementById('_384_1755_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_384_1755_Closed_Text').style.display='none'; document.getElementById('_384_1755_Open_Image').style.display='inline'; document.getElementById('_384_1755_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;init:</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">this</SPAN><SPAN style="COLOR: rgb(0,0,0)">;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">生成窗体</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_455_592_Open_Text').style.display='none'; document.getElementById('_455_592_Closed_Image').style.display='inline'; document.getElementById('_455_592_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_455_592_Closed_Text').style.display='none'; document.getElementById('_455_592_Open_Image').style.display='inline'; document.getElementById('_455_592_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;form</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;Form(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">样式</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;baseCls:&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">x-plain</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">label宽</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labelWidth:&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,0)">75</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">数据提交地址</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">save.jspa</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">生成TextField</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_660_807_Open_Text').style.display='none'; document.getElementById('_660_807_Closed_Image').style.display='inline'; document.getElementById('_660_807_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_660_807_Closed_Text').style.display='none'; document.getElementById('_660_807_Open_Image').style.display='inline'; document.getElementById('_660_807_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textField0</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;TextField(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fieldLabel:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">姓名</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">name</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">175</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowBlank:</SPAN><SPAN style="COLOR: rgb(0,0,255)">false</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_848_964_Open_Text').style.display='none'; document.getElementById('_848_964_Closed_Image').style.display='inline'; document.getElementById('_848_964_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_848_964_Closed_Text').style.display='none'; document.getElementById('_848_964_Open_Image').style.display='inline'; document.getElementById('_848_964_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textField1</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;TextField(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fieldLabel:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">地址</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">address</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">175</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_1005_1117_Open_Text').style.display='none'; document.getElementById('_1005_1117_Closed_Image').style.display='inline'; document.getElementById('_1005_1117_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1005_1117_Closed_Text').style.display='none'; document.getElementById('_1005_1117_Open_Image').style.display='inline'; document.getElementById('_1005_1117_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textField2</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;TextField(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fieldLabel:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">年齢</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">age</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">175</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_1158_1328_Open_Text').style.display='none'; document.getElementById('_1158_1328_Closed_Image').style.display='inline'; document.getElementById('_1158_1328_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1158_1328_Closed_Text').style.display='none'; document.getElementById('_1158_1328_Open_Image').style.display='inline'; document.getElementById('_1158_1328_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textField3</SPAN><SPAN style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,255)">new</SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;TextField(</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fieldLabel:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">email</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">email</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">验证类型为email</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vtype&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">email</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</SPAN><SPAN style="COLOR: rgb(0,0,0)">175</SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">将TextField加载入form</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;form.add(textField0,textField1,textField2,textField3);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: rgb(0,128,0)">//</SPAN><SPAN style="COLOR: rgb(0,128,0)">生成按钮</SPAN><SPAN style="COLOR: rgb(0,128,0)"><BR><IMG none'; document.getElementById('_1514_1562_Open_Text').style.display='none'; document.getElementById('_1514_1562_Closed_Image').style.display='inline'; document.getElementById('_1514_1562_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1514_1562_Closed_Text').style.display='none'; document.getElementById('_1514_1562_Open_Image').style.display='inline'; document.getElementById('_1514_1562_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;form.addButton(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">保存</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.alert(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">消息框</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">保存数据</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">)}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG none'; document.getElementById('_1608_1656_Open_Text').style.display='none'; document.getElementById('_1608_1656_Closed_Image').style.display='inline'; document.getElementById('_1608_1656_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG style="DISPLAY: none" none'; document.getElementById('_1608_1656_Closed_Text').style.display='none'; document.getElementById('_1608_1656_Open_Image').style.display='inline'; document.getElementById('_1608_1656_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;form.addButton(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">取消</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,255)">function</SPAN><SPAN style="COLOR: rgb(0,0,0)">()</SPAN><SPAN style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN ><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.alert(</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">消息框</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">取消操作</SPAN><SPAN style="COLOR: rgb(0,0,0)">'</SPAN><SPAN style="COLOR: rgb(0,0,0)">)}</SPAN></SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndica