<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>椰子Java</title> 
<link>http:///index.php</link> 
<description>       我从事软件行业已经9年啦，2001毕业以后一直在成都从事软件开发工作，从事过电信行业相关软件开发和航空行业相关软件开发工作，2007回到了海南，回到了我的故乡。                                                                                                                                我经历了喜欢--狂热--疲倦--坚持--深爱上我的行业，因为它最体现我的价值。我对它了解越深就越能感觉到它的奇妙性，我可以在它虚拟出来的世界里任意翱翔。。。</description> 
<language>zh-cn</language> 
<copyright>Powered by Bo-blog 2.0.2 sp1</copyright>
<item>
<link>http:///read.php?1106</link>
<title>Extjs在文本框中输入完毕后，直接使用回车（Enter）提交的方法</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Wed, 09 Jun 2010 09:07:38 +0000</pubDate> 
<guid>http:///read.php?1106</guid> 
<description>
<![CDATA[ 
	var siteName = new Ext.form.Field({<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;id: 'siteName1',//表单元素最好使用Id，不然在IE浏览器中表单内容将变形<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fieldLabel: '网站名称',<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listeners : {<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;specialkey : function(field, e) {<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (e.getKey() == Ext.EventObject.ENTER) {<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alert("终于可以回车提交了");<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br/>}); 
  ]]> 
</description>
</item><item>
<link>http:///read.php?1105</link>
<title>EXT的时间格式化</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Wed, 09 Jun 2010 06:03:06 +0000</pubDate> 
<guid>http:///read.php?1105</guid> 
<description>
<![CDATA[ 
	格式化时间方法： format: 'Y-m-d H:i:s'<br/><br/>替换'Y-m-d H:i:s'中的各个字母,当然增加和减少都没有问题,留意大小写.可得到多种样式的日期格式.<br/> &nbsp; Ext.Date的格式说明<br/> &nbsp; &nbsp; d 01 to 31<br/> &nbsp; &nbsp; D Mon to Sun<br/> &nbsp; &nbsp; j 1 to 31<br/> &nbsp; &nbsp; l Sunday to Saturday<br/> &nbsp; &nbsp; N 1 (for Monday) through 7 (for Sunday)<br/> &nbsp; &nbsp; S st, nd, rd or th. Works well with j<br/> &nbsp; &nbsp; w 0 (for Sunday) to 6 (for Saturday)<br/> &nbsp; &nbsp; z 0 to 364 (365 in leap years)<br/> &nbsp; &nbsp; W 01 to 53<br/> &nbsp; &nbsp; F January to December<br/> &nbsp; &nbsp; m 01 to 12<br/> &nbsp; &nbsp; M Jan to Dec<br/> &nbsp; &nbsp; n 1 to 12<br/> &nbsp; &nbsp; t 28 to 31<br/> &nbsp; &nbsp; L 1 if it is a leap year, 0 otherwise.<br/> &nbsp; &nbsp; o Examples: 1998 or 2004<br/> &nbsp; &nbsp; Y Examples: 1999 or 2003<br/> &nbsp; &nbsp; y Examples: 99 or 03<br/> &nbsp; &nbsp; a am or pm<br/> &nbsp; &nbsp; A AM or PM<br/> &nbsp; &nbsp; g 1 to 12<br/> &nbsp; &nbsp; G 0 to 23<br/> &nbsp; &nbsp; h 01 to 12<br/> &nbsp; &nbsp; H 00 to 23<br/> &nbsp; &nbsp; i 00 to 59<br/> &nbsp; &nbsp; s 00 to 59<br/> &nbsp; &nbsp; u 001 to 999<br/> &nbsp; &nbsp; O Example: +1030<br/> &nbsp; &nbsp; P Example: -08:00<br/> &nbsp; &nbsp; T Examples: EST, MDT, PDT ...<br/> &nbsp; &nbsp; Z -43200 to 50400<br/> &nbsp; &nbsp; c 2007-04-17T15:19:21+08:00<br/> &nbsp; &nbsp; U 1193432466 or -2138434463<br/><br/>
  ]]> 
</description>
</item><item>
<link>http:///read.php?1097</link>
<title>Ext.Template实例</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Mon, 19 Apr 2010 09:30:47 +0000</pubDate> 
<guid>http:///read.php?1097</guid> 
<description>
<![CDATA[ 
	&lt;script type=&quot;text/javascript&quot;&gt;<br/>Ext.onReady(function() {<br/>&nbsp;&nbsp;var cm = new Ext.grid.ColumnModel([{header: &#039;编号&#039;,dataIndex: &#039;id&#039;}, <br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {header: &#039;性别&#039;,dataIndex: &#039;sex&#039;},<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {header: &#039;名称&#039;,dataIndex: &#039;name&#039;},<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {header: &#039;描述&#039;,dataIndex: &#039;descn&#039;}]);<br/>&nbsp;&nbsp;//排序选项<br/>&nbsp;&nbsp;cm.defaultSortable = true;<br/>&nbsp;&nbsp;var data = [[&#039;9&#039;, &#039;male&#039;, &#039;name1&#039;, &#039;descn1&#039;], [&#039;2&#039;, &#039;male&#039;, &#039;name1&#039;, &#039;descn2&#039;], [&#039;3&#039;, &#039;male&#039;, &#039;name1&#039;, &#039;descn2&#039;]];<br/>&nbsp;&nbsp;var ds = new Ext.data.Store({<br/>&nbsp;&nbsp;&nbsp;&nbsp;proxy: new Ext.data.MemoryProxy(data),<br/>&nbsp;&nbsp;&nbsp;&nbsp;reader: new Ext.data.ArrayReader({}, [{name: &#039;id&#039;,mapping: 0}, <br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{name: &#039;sex&#039;,mapping: 1}, <br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{name: &#039;name&#039;,mapping: 2}, <br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{name: &#039;descn&#039;,mapping: 3}])<br/>&nbsp;&nbsp;});<br/>&nbsp;&nbsp;ds.load();<br/>&nbsp;&nbsp;<br/>&nbsp;&nbsp;var grid = new Ext.grid.GridPanel({<br/>&nbsp;&nbsp;&nbsp;&nbsp;ds: ds,<br/>&nbsp;&nbsp;&nbsp;&nbsp;cm: cm,<br/>&nbsp;&nbsp;&nbsp;&nbsp;anchor:&#039;100% 60%&#039;<br/>&nbsp;&nbsp;});&nbsp;&nbsp;<br/>&nbsp;&nbsp;<br/><br/> &nbsp; &nbsp;var p = new Ext.Panel({<br/> &nbsp; &nbsp; &nbsp; &nbsp;id: &quot;detailPanel&quot;,<br/> &nbsp; &nbsp; &nbsp; &nbsp;title: &#039;详细情况&#039;, //标题<br/> &nbsp; &nbsp; &nbsp; &nbsp;collapsible: true, //右上角上的那个收缩按钮，设为false则不显示<br/> &nbsp; &nbsp; &nbsp; &nbsp;anchor:&#039;100% 40%&#039;,<br/> &nbsp; &nbsp; &nbsp; &nbsp;html: &quot;请在上面网格中选择一行数据&quot;//panel 主体中的内容，可以执行html代码<br/> &nbsp; &nbsp;});&nbsp;&nbsp;<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;// 定义详细信息的显示模板<br/> &nbsp; &nbsp;var bookTplMarkup = [<br/>&nbsp;&nbsp; &nbsp; &nbsp;&#039;出版号: &lt;a href=&quot;http://www.baidu.com/{ASIN}&quot; target=&quot;_blank&quot;&gt;{id}&lt;/a&gt;&lt;br/&gt;&#039;,<br/>&nbsp;&nbsp; &nbsp; &nbsp;&#039;性别: {sex}&lt;br/&gt;&#039;,<br/>&nbsp;&nbsp; &nbsp; &nbsp;&#039;名称: {name}&lt;br/&gt;&#039;,<br/>&nbsp;&nbsp; &nbsp; &nbsp;&#039;描述: {descn}&lt;br/&gt;&#039;<br/> &nbsp; &nbsp;];<br/> &nbsp; &nbsp;var bookTpl = new Ext.Template(bookTplMarkup); //ExtJs 的模板组件 &nbsp; &nbsp;<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;grid.getSelectionModel().on(&#039;rowselect&#039;, function(sm, rowIdx, r) {<br/> &nbsp; &nbsp; &nbsp; &nbsp;var detailPanel = Ext.getCmp(&#039;detailPanel&#039;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;bookTpl.overwrite(detailPanel.body, r.data);<br/> &nbsp; &nbsp; &nbsp; &nbsp;Ext.MessageBox.alert(&quot;提示&quot;,&quot;您选择的出版号是：&quot; + r.data.ASIN);<br/> &nbsp; &nbsp;});<br/>&nbsp;&nbsp;<br/> &nbsp; &nbsp;var window = new Ext.Window({<br/> &nbsp; &nbsp; &nbsp; &nbsp;title: &#039;Resize Me&#039;,<br/> &nbsp; &nbsp; &nbsp; &nbsp;width: 500,<br/> &nbsp; &nbsp; &nbsp; &nbsp;height:300,<br/> &nbsp; &nbsp; &nbsp; &nbsp;minWidth: 300,<br/> &nbsp; &nbsp; &nbsp; &nbsp;minHeight: 200,<br/> &nbsp; &nbsp; &nbsp; &nbsp;layout: &#039;anchor&#039;,<br/> &nbsp; &nbsp; &nbsp; &nbsp;plain:true,//true则主体背景透明，false则主体有小差别的背景色，默认为false<br/> &nbsp; &nbsp; &nbsp; &nbsp;bodyStyle:&#039;padding:5px;&#039;,<br/> &nbsp; &nbsp; &nbsp; &nbsp;buttonAlign:&#039;center&#039;,<br/> &nbsp; &nbsp; &nbsp; &nbsp;modal:true,//为模式窗口，后面的内容都不能操作，默认为false<br/> &nbsp; &nbsp; &nbsp; &nbsp;//closeAction:枚举值为：close(默认值)，当点击关闭后，关闭window窗口 hide,关闭后，只是hidden窗口<br/> &nbsp; &nbsp; &nbsp; &nbsp;//constrain：true则强制此window控制在viewport，默认为false<br/> &nbsp; &nbsp; &nbsp; &nbsp;items:[grid,p]<br/> &nbsp; &nbsp;});<br/><br/> &nbsp; &nbsp;window.show();<br/>});<br/>&lt;/script&gt;<br/>Tags - <a href="http:///tag.php?tag=ext" rel="tag">ext</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?1096</link>
<title>刷新Ext EditorGridPanel提交以后上次修改的数据</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Sun, 18 Apr 2010 06:23:21 +0000</pubDate> 
<guid>http:///read.php?1096</guid> 
<description>
<![CDATA[ 
	问题现状：用Ext的EditorGridPanel保存修改后的数据的功能，可是每次提交的时候发现总是会把前几次的数据一起提交。<br/><br/>解决方法：在保存完更新数据后，刷新数据源的更改列表<br/><br/>ds.modified = []; <br/>ds.reload();<br/><br/>Tags - <a href="http:///tag.php?tag=ext" rel="tag">ext</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?1083</link>
<title>EXT Template 简单但非常实用的功能</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Tue, 16 Mar 2010 01:13:03 +0000</pubDate> 
<guid>http:///read.php?1083</guid> 
<description>
<![CDATA[ 
	var t = new Ext.Template( <br/>&#039;&lt;div name=&quot;{id}&quot;&gt;&#039;, <br/>&#039;&lt;span class=&quot;{cls}&quot;&gt;{name} {value}&lt;/span&gt;&#039;, <br/>&#039;&lt;/div&gt;&#039; <br/>); <br/>var dt=t.apply({id: &#039;myid&#039;, cls: &#039;myclass&#039;, name: &#039;foo&#039;, value: &#039;bar&#039;}); <br/>alert(dt); <br/><br/><br/>运行上面的代码会弹出&lt;div name=&quot;myid&quot;&gt;&lt;span class=&quot;myclass&quot;&gt;foo bar&lt;/span&gt;&lt;/div&gt;说明替换成功。 
  ]]> 
</description>
</item><item>
<link>http:///read.php?1077</link>
<title>EXT快捷键使用总结</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Mon, 01 Mar 2010 02:05:16 +0000</pubDate> 
<guid>http:///read.php?1077</guid> 
<description>
<![CDATA[ 
	Ext.onReady(function() {<br/> &nbsp; &nbsp;var form = new Ext.form.FormPanel({<br/> &nbsp; &nbsp; &nbsp; &nbsp;baseCls: 'x-plain',<br/> &nbsp; &nbsp; &nbsp; &nbsp;labelWidth: 55,<br/> &nbsp; &nbsp; &nbsp; &nbsp;defaultType: 'textfield',<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;items: [{<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fieldLabel: 'Send To',<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;name: 'to',<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anchor:'100%' &nbsp;// anchor width by percentage<br/> &nbsp; &nbsp; &nbsp; &nbsp;}<br/> &nbsp; &nbsp; &nbsp; &nbsp;//一下是 Form 快捷方式<br/> &nbsp; &nbsp; &nbsp; &nbsp;keys:[{<br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; key:Ext.EventObject.ENTER,<br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; fn:doSearch,<br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; scope:this<br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;}]<br/> &nbsp; &nbsp; &nbsp; &nbsp;<br/> &nbsp; &nbsp;});<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;//快捷方式执行的方法<br/> &nbsp; &nbsp;function doSearch(){<br/> &nbsp; &nbsp; &nbsp; alert('开始查找。。。');<br/> &nbsp; &nbsp;};<br/><br/> &nbsp; &nbsp;var window = new Ext.Window({<br/> &nbsp; &nbsp; &nbsp; &nbsp;title: 'Resize Me',<br/> &nbsp; &nbsp; &nbsp; &nbsp;width: 500,<br/> &nbsp; &nbsp; &nbsp; &nbsp;height:300,<br/> &nbsp; &nbsp; &nbsp; &nbsp;minWidth: 300,<br/> &nbsp; &nbsp; &nbsp; &nbsp;minHeight: 200,<br/> &nbsp; &nbsp; &nbsp; &nbsp;layout: 'fit',<br/> &nbsp; &nbsp; &nbsp; &nbsp;plain:true,<br/> &nbsp; &nbsp; &nbsp; &nbsp;bodyStyle:'padding:5px;',<br/> &nbsp; &nbsp; &nbsp; &nbsp;buttonAlign:'center',<br/> &nbsp; &nbsp; &nbsp; &nbsp;items: form<br/> &nbsp; &nbsp;});<br/><br/> &nbsp; &nbsp;window.show();<br/>});<br/><br/>当然快捷键也可以直接放在Windows里面。<br/><br/><br/>1：KeyMap构造方法如下。<br/>KeyMap( Mixed el, Object config, [String eventName] )<br/>参数说明：<br/>el:HTMLElement元素或id号。<br/>config:object，可以包含如下配置信息。<br/>{<br/> &nbsp; &nbsp; key: String/Array, &nbsp; &nbsp; //可以是数字，字符，Ext.EventObject.LEFT助记符以及它们组成的数组<br/> &nbsp; &nbsp; shift: &nbsp; &nbsp; &nbsp; Boolean, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//shift/ctrl/alt键与key同时按下<br/> &nbsp; &nbsp; &nbsp;ctrl: &nbsp; &nbsp; &nbsp; &nbsp;Boolean,<br/> &nbsp; &nbsp; &nbsp;alt : &nbsp; &nbsp; &nbsp; &nbsp;Boolean,<br/> &nbsp; &nbsp; &nbsp;fn &nbsp;: &nbsp; &nbsp; &nbsp; &nbsp;Function, &nbsp; &nbsp; &nbsp; &nbsp; //回调函数<br/> &nbsp; &nbsp; scope: &nbsp; &nbsp; &nbsp; Object &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//按键事件绑定范围<br/>}<br/>eventName:string 可选，其值为keydown等。<br/><br/>2：新建立一个KeyMap：<br/><br/>&nbsp;&nbsp;var el = Ext.get("idv"); &nbsp; <br/>&nbsp;&nbsp;var keympTest=new Ext.KeyMap(el,{ &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;key:Ext.EventObject.ENTER,//此处写为Ext.EventObject.ENTER亦可 &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;//ctrl:true,//此行代码若存在，则fn在ctrl和key同时按下的情况下触发，此处是ctrl+enter &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;//shift: true, &nbsp; &nbsp;//同上<br/>&nbsp;&nbsp;&nbsp;&nbsp;//alt: (true/false),//同上 &nbsp; &nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;fn:handerMethod, &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;scope:this &nbsp;<br/>&nbsp;&nbsp;} &nbsp; <br/>&nbsp;&nbsp;); &nbsp; <br/>&nbsp;&nbsp;keympTest.enable();//使当前keymap配置生效 &nbsp;<br/><br/><br/><br/>3：向以存在的快捷方式加入新的热键。<br/>&nbsp;&nbsp;keympTest.addBinding({ &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;key:'&#92;r', &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;shift:true, &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;fn:handerMethod, &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;scope:this &nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;}); &nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;keympTest.enable(); &nbsp; <br/>&nbsp;&nbsp;}); <br/>
  ]]> 
</description>
</item><item>
<link>http:///read.php?1070</link>
<title>EXT Tree Grid</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Wed, 10 Feb 2010 03:07:15 +0000</pubDate> 
<guid>http:///read.php?1070</guid> 
<description>
<![CDATA[ 
	带树形结构的表格实现。<br/><br/><a href="http:///attachment/201002/1265771204_0.jpg" target="_blank"><img src="http:///attachment/201002/1265771204_0.jpg" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>这个文件只能在登入之后下载。请先 <a href="login.php?job=register">注册</a> 或 <a href="login.php">登入</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?1037</link>
<title>Ext.state.Manager.setProvider(new Ext.state.CookieProvider());</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Thu, 15 Oct 2009 15:40:10 +0000</pubDate> 
<guid>http:///read.php?1037</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp; &nbsp;初始化Ext状态管理器，在Cookie中记录用户的操作状态，如果不启用，象刷新时就不会保存当前的状态，而是重新加载 <br/><br/> &nbsp; &nbsp;象如果窗口中有用可拖动面板的话，你在拖动后如果启动了Ext.state.Manager.setProvider(new Ext.state.CookieProvider()),就算刷新后面板仍然会在你拖动后的位置。如果不启用的话是不是就会按照默认的排列方式排列 
  ]]> 
</description>
</item><item>
<link>http:///read.php?1036</link>
<title>EXT将JSON数据传到后台</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Sun, 11 Oct 2009 02:05:02 +0000</pubDate> 
<guid>http:///read.php?1036</guid> 
<description>
<![CDATA[ 
	有JSON数据：<br/>var obj = { &nbsp; &nbsp;<br/> &nbsp; &nbsp;prop1: "a0~`!@#$%^&*()-_+={}[]&#124;&#92;&#92;:;&#92;"',.?/", &nbsp; &nbsp;<br/> &nbsp; &nbsp;prop2: ['x','y'], &nbsp; &nbsp;<br/> &nbsp; &nbsp;prop3: { &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;nestedProp1: 'abc', &nbsp; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp;nestedProp2: 456 &nbsp; &nbsp;<br/> &nbsp; &nbsp;} &nbsp; &nbsp;<br/>} &nbsp; <br/>如果要将其传到后台很简单：<br/>var req = Ext.Ajax.request({ &nbsp; &nbsp;<br/> &nbsp; &nbsp;url: "/ws/myAction.do", &nbsp; &nbsp;<br/> &nbsp; &nbsp;params: {json: Ext.encode(obj)}, &nbsp; &nbsp;<br/> &nbsp; &nbsp;disableCaching: false &nbsp; <br/>}) &nbsp; <br/><br/>在Action里（后台）：<br/><br/>String json= request.getParameter("json");<br/>JSONObject aJSONObject= JSONObject.fromObject(json); &nbsp;<br/><br/>其实这个事情很简单。。。。<br/>Tags - <a href="http:///tag.php?tag=ext" rel="tag">ext</a>
  ]]> 
</description>
</item><item>
<link>http:///read.php?1007</link>
<title>Ext.extend原理和使用说明</title> 
<author>fubin &lt;yonghe169@163.com&gt;</author>
<category>EXT &amp; YUI</category>
<pubDate>Mon, 04 May 2009 20:48:55 +0000</pubDate> 
<guid>http:///read.php?1007</guid> 
<description>
<![CDATA[ 
	Ext.extend方法是用来实现类的继承。<br/>extend(Object subclass,Object superclass,[Object overrides] : Object<br/>第一个参数：子类<br/>第二个参数：父类<br/>第三个参数：要覆盖的属性。<br/>这里需要强调一下，子类继承下来的是父类中通过superclass.prototype方式定义的属性（包括用此方法定义的函数）。 <br/>&lt;script type=&quot;text/javascript&quot;&gt; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function S(){ &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;S.prototype.s = &quot;s&quot;; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;S.prototype.s1 = &quot;s1&quot;; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function C(){ &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this.c = &quot;c&quot;; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this.c1 = &quot;c1&quot;; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ext.extend(C,S,{s1:&quot;by c overload&quot;}); &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var c = new C(); &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(c.s); //s &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(c.s1); //by c overload &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/>&lt;/script&gt; &nbsp;<br/>
  ]]> 
</description>
</item>
</channel>
</rss>