??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩亚洲欧美中文在线,中文字幕在线中文字幕二区,亚洲狠狠婷婷http://www.aygfsteel.com/atian25/专注于ExtJS && AS3 && Javazh-cnSat, 17 May 2025 23:37:31 GMTSat, 17 May 2025 23:37:31 GMT60ExtJS 3.0 在skpet里面的代码提C?(含破解jar)http://www.aygfsteel.com/atian25/archive/2009/08/13/EXTJS3_SKPET.html天猪天猪Thu, 13 Aug 2009 13:50:00 GMThttp://www.aygfsteel.com/atian25/archive/2009/08/13/EXTJS3_SKPET.htmlhttp://www.aygfsteel.com/atian25/comments/291085.htmlhttp://www.aygfsteel.com/atian25/archive/2009/08/13/EXTJS3_SKPET.html#Feedback2http://www.aygfsteel.com/atian25/comments/commentRss/291085.htmlhttp://www.aygfsteel.com/atian25/services/trackbacks/291085.html

原文地址:http://atian25.javaeye.com/blog/426824


官方的extjs3.0包里面没有提供ext.jsb文g.

于是d方论坛问了下, 3.0他们提供的是jsb2,Zjson?

现在spketq不支持?/p>

 

有h重新做了个时的3.0的jsb文g,如附件?/p>

 

用法:

 

1.下蝲后放?.0的src目录?(一定要切记...我就是一时糊涂放错了...在官斚w闹了W话 -.-!!)

 

2.然后在skpet中如下图讄:

 


 

 

3.讄为默认profile


 

4.讄完后,关闭所有标{N ,重启skpetok?

 

5.提示效果如下?


 

 

关于spket和extjs的ide,请参?http://www.javaeye.com/topic/161161

 

 

09.07.23更新:

skpet出新版本?支持extjs的jsb2.官方下蝲:

Spket IDE 1.6.17 released - 22 July 2009

http://spket.com/

 

09.08.11更新

spket1.6.16的破解包,覆盖卛_.

 下蝲地址?a target="_blank">http://atian25.javaeye.com/blog/426824文末


09.08.12更新:

ext.jsb2已经包含在官方的压羃包里面了.

或者你可以从我另一blog中下?http://atian25.javaeye.com/admin/blogs/445480

注意:

1.该jsb2文g需要spket1.6.17

2.攄目录为根目录而不是src目录 (跟前面的jsb文g不同)

 

- by tz



天猪 2009-08-13 21:50 发表评论
]]>
ExtJS 2.3/3.0 定制你所需要的模块http://www.aygfsteel.com/atian25/archive/2009/08/13/EXTJS_BUILDER.html天猪天猪Thu, 13 Aug 2009 13:48:00 GMThttp://www.aygfsteel.com/atian25/archive/2009/08/13/EXTJS_BUILDER.htmlhttp://www.aygfsteel.com/atian25/comments/291084.htmlhttp://www.aygfsteel.com/atian25/archive/2009/08/13/EXTJS_BUILDER.html#Feedback1http://www.aygfsteel.com/atian25/comments/commentRss/291084.htmlhttp://www.aygfsteel.com/atian25/services/trackbacks/291084.htmlhttp://atian25.javaeye.com/blog/445480  
天猪部落?- 专注?ExtJS && AS3 && Java)
附g地址见原文地址文末

很实在的一个需?是我们只需要extjs的一部分功能,不想把整个类库都包含q来.

 

所以让我们来定制extjs吧~

 

 

1. ExtJS 1.1.1?.3.0

 

可以用官方的在线工具来定?http://extjs.com/products/extjs/build/

 

使用教程:

e?http://extjs.com/learn/Tutorial:Building_Ext_From_Source

中文:http://extjs.org.cn/node/364

 

2. EXTJS 3.0

 

现在q没有在U版,可以通过以下Ҏ来自己定?

 

1. 下蝲Ext 3.0.0 SDK. http://extjs.com/products/extjs/download.php?dl=extjs3 
2. 下蝲JSBuilder2. http://extjs.com/products/jsbuilder/   (或者看文末的附?
3. 下蝲Ext 3.0.0的ext.jsb2文g   http://extjs.com/forum/showthread.php?p=354473  (或者看文末的附?

4.  把JSBuilder2解压jar到extjs根目录下,ext.jsb2也放到根目录?/p>

5.  用你的文本编辑器~辑ext.jsb2文g,仅保留你需要的模块

6.  jsb2文g中的deployDir: 'ext-3.0.0-build'表示相对输出目录

7.  cmd,切换到ext根目录下,执行:

 

G:\Learning\Web\Javascript\ExtJS\ext-3.0.0> java -jar "JSBuilder2.jar" -p ./ext.jsb2 -d ./ 

 

8.{待刷屏完毕后去你在jsb2中指定的目录下找输出?

 

 

3.试验

一个试验的例子,仅包含Treelg,如附?/p>

 

1) resource部分未作qo

2) 注意依赖关系,?/p>

        name: 'Trees',
        file: 'pkgs/pkg-tree.js',
        isDebug: true,
        pkgs: ['pkgs/cmp-foundation.js']

 

3)输出的文件树如下:

 

adapter\
|--ext\
|----ext-base.js 
|----ext-base-debug.js

pkgs\
|--cmp-foundation.js 
|--ext-foundation.js 
|--pkg-tree.js 
|--cmp-foundation-debug.js
|--ext-foundation-debug.js
|--pkg-tree-debug.js

resources\
license.txt



天猪 2009-08-13 21:48 发表评论
]]>
ExtJS 3.0 Designer Preview (官方的IDE可视化工?http://www.aygfsteel.com/atian25/archive/2009/08/13/ExtJS3_Designer_Preview.html天猪天猪Thu, 13 Aug 2009 13:46:00 GMThttp://www.aygfsteel.com/atian25/archive/2009/08/13/ExtJS3_Designer_Preview.htmlhttp://www.aygfsteel.com/atian25/comments/291083.htmlhttp://www.aygfsteel.com/atian25/archive/2009/08/13/ExtJS3_Designer_Preview.html#Feedback3http://www.aygfsteel.com/atian25/comments/commentRss/291083.htmlhttp://www.aygfsteel.com/atian25/services/trackbacks/291083.html

原文地址: http://atian25.javaeye.com/blog/444581

 

官方大爆?.. http://extjs.com/blog/2009/08/10/ext-js-30-be-outstanding/

 

Ext JS 3.0.0 Patch Release  --- 要收?..{流攑֐ ^_^
Ext JS Public Commit Log 
JS Builder 2 
CSS Refactor & Improvements 
Memory Management Improvements

 

Designer Preview

 

Constructing your interfaces in code will be a thing of the past. We are releasing a Designer Preview that will allow you to experiment with the designer interface and to explore how configs affect your layout. Soon, you will be able to build your application components using base Ext components and Certified User Extensions.

Code generation is currently not available. Our intentions are to charge a fee for this service and to enable our community to create and sell their creations on our marketplace. Our goals are lofty. We want to be the iTunes of Web App Development.

 

附g中有下蝲.

 

预览版还不提供代码生成功?Z也是会收费的...

不过?..众的智?..

 

?安装该AIR应用?可以自己ȝ下\Ext Designer Preview\deploy\designer-complete.js的源?

?a target="_blank" style="color: #108ac6; text-decoration: underline; ">http://jsbeautifier.org/ 来格式化

附g中也有格式化后的代码,9k?




下蝲地址?a target="_blank">http://atian25.javaeye.com/blog/444581文末





天猪 2009-08-13 21:46 发表评论
]]>
[译]ExtJS ChangeLog 2.2 -> 3.0.0 -- by tzhttp://www.aygfsteel.com/atian25/archive/2009/07/15/extjs3_changelog.html天猪天猪Wed, 15 Jul 2009 05:26:00 GMThttp://www.aygfsteel.com/atian25/archive/2009/07/15/extjs3_changelog.htmlhttp://www.aygfsteel.com/atian25/comments/286856.htmlhttp://www.aygfsteel.com/atian25/archive/2009/07/15/extjs3_changelog.html#Feedback0http://www.aygfsteel.com/atian25/comments/commentRss/286856.htmlhttp://www.aygfsteel.com/atian25/services/trackbacks/286856.htmlhttp://atian25.javaeye.com/blog/426310


郁闷...本来都写完的?..l果插入一个表?..JE~辑器就出问题了...内容不见了一?..格式也全׃...得重?..

译的不?请多见谅。其中有些地方觉得太拗口?q接给出原文了,如果你有更好的翻?误?谢谢?/p>

原文地址: http://extjs.com/forum/showthread.php?t=70352

Changes, Additions  (roughly organized alphabetically)

1.Ext

  •  新增:
    •  iterate Ҏ - 遍历一个数l或对象,Ҏ个元素都执行指定的函?/li>
    •  isNumber Ҏ - 判断传递的参数对象是否是数?/li>
    •  isString Ҏ - 判断传递的参数对象是否是字W串
    •  isBoolean Ҏ - 判断传递的参数对象是否是布?/li>
    •  isDefined Ҏ - 判断传递的参数对象是否已经定义

2.Ext.lib.Ajax

  • 变更: Ajax responses. The core adapter file in the Ext.lib.Ajax class has been changed in line with the W3 XMLHttpRequest specification. The response object which emulates the XHR now has getResponseHeader and getAllResponseHeaders as f unctions rather than Arrays to keep inline with the real XHR object. So, anyone who was currenltly examining headers using an Array (as inherited from YUI via yui-ext) will need to change to use a function.

3.Ext.Componet

  • 新增:
    • A Component's Observable events may now be set to bubble up the Component-ownerCt axis.

4.Ext.BoxComponent

  • 新增:
    • getWidth() 
    • getHeight()
    • getOuterSize()

5.Ext.Button

  • 新增:
    • Rather than being limited to only positioning buttons in a buttons configuration, they can now be placed anywhere you please. 你的按钮现在可以攑֜L地方,而不仅限于buttons配置?/li>
    • Button现在可以~放ZQ意高?q且有高U的文字布局?(Buttons can now scale to any height or width and have advanced text positioning.)
    •  新的配置:scale: 'small'  ,  iconAlign : 'left' , arrowAlign : 'right'
  • 变更:
    • Button现在是一个有效的BoxComponent,可以被布局理器管理?(Button is now a valid BoxComponent and can partake in layout management. )
    • Button的实现已l完全重?所以旧版本时候写的自定义样式/主题需要相应的修改?The markup for buttons is completely different and will require changes if you had implemented a custom theme. )
6.Ext.Component
  • 新增:
    • afterrender事g
    • ref 配置?- establish a named reference for an object an ancestor Container (mitigate dependency on 'id' and Ext.getCmp).
    • ptypes - ComponentMgr manages plugins similar to xtypes (use Ext.preg similar to Ext.reg)
    • nextSibling
    • previousSibling
    • getDomPositionEl
7.Ext.ComponentMgr
  • 新增:
    • isRegistered Ҏ - 查一个xtype是否已经被注?/li>
8.Ext.Container
  • 新增:
    • get()
9.Ext.data.Reader
  • 已过?
    • 推荐使用id, L propertyId ?idIndex
10.Ext.data.Store
  • 新增:
    • store xtypes
    • autoDestroy  配置?- 当storel定的component被销毁的时?销毁该Store
    • setBaseParam()
  • 变更:
    • baseParams可以被loadҎ传递的同名参数所覆盖? baseParams may be overwritten by params of same name passed to load() )
  • 已过?
    • 不推荐?id ,L storeId 代替?/li>
    • 不推荐?loadexception 事g,L exception 事g
    • SimpleStore 更名?ArrayStore
11.Ext.Element
  • 新增:
    • mouseenter事g
    • mouseleave事g
  • 变更/已过?
    • getAttributeNS() - 已过?用getAttribute()代替
    • autoHeight() - U除
    • alignTo() - 变更参数"position"
    • query() - 新增参数"unique"
    • focus() - 新增参数"defer"
12.Ext.EventManager
  • 变更:
    • within() - can now also check if the passed element is the target or related target
13.Ext.form
  • 新增:
    • 当动态添加Container到FormPanel?Fields会被d到BasicForm's的集合中。所以BasicForm's setValues Ҏ现在可以始终对动态添加的Fields有效?When dynamically adding Containers anywhere in a FormPanel, any  Fields are now found and added to the BasicForm's Collection. So BasicForm's setValues  method  will now work consistently with dynamically added Fields.)
  • 变更:
14.Ext.grid.GridPanel
  • 新增:

    • columnLines 配置?(boolean) - adds class ' x-grid-with-col-lines'
    •  Ext.grid.Column
      • 用来作ؓcolumns参数传递给ColumnModel (Instances of this class are used as columns passed to ColumnModel)
      •  xtypes可以用来指定一些预先配|好的renderer(xtypes can be used to specify a preconfigured renderer)
      • renderer may be specified in additional ways
    • Grid RowEditor Class
    • Grid like ListView and ListView.Sorter Classes (译注:是一个用DataView+XTemplate来模拟的Grid,轻量)
    • Grid BufferedView Class. Buffered GridView enhances performance by waiting to render rows until they are visible.(译注:对大数据量的Grid有明昄性能提升,实际上就是只渲染用户可见的列,拖动的时候再渲染其他.官方q有其他的一个扩? Ext.ux.LiveGrid,详见:http://extjs.com/forum/showthread.php?t=17791)
15.Layouts:
16.Ext.Menu
  • 新增:
    • Menu Overflow. Whenever a menu gets so long that the items won’t fit the viewable area, it provides the user with an easy UI to scroll the menu. This feature is turned on by default and can be disabled by the configuration option enableScrolling.(译注:单的说就是Menu溢出后的滚动效果,默认是开启该效果,可以通过enableScrolling来配|?? 见官方示?
  • 变更/已过?
    • Toolbar and Menu are now proper Containers (formerly extended from BoxComponent). 现在Toolbar和Menu都承Container
    • Breaking change: MenuItem的ids现在已经不是局部变量了,所以你不能在多个menu里面用一个id.:用唯一的id或者用itemIds来替? 它?MenuItem ids are no longer local to their menu but global component ids. This means that you can't use the same id in multiple menus. Suggested fix: Use unique ids or switch to using itemIds.)
    • As well as Menu being a Container, this also means Menu can be a regular Component. Menu did not extend BoxComponent before, but was out on its own. Now, it can behave either as a regular floating Menu, or, if configured floating: false, it can be used as a usual inline Component of a Container.(译注:单的说就是由于menu的承改?现在你可以设|Menu为Q动的,或者像q_的组仉样用它)
    • DateItem和ColorItem已经被移?因ؓ没有必要?现在你可以把Llg攑օmenu的items?/li>
    • autoWidth() - 变更为autoSize()
17.Ext.MenuButton - 该类已经被移?用SplitButton代替?/div>

18.Ext.StatusBar - 该类已经被移出core??.0final版会有个Ext.ux.StatusBar

19.Ext.Toolbar
  • 新增:
    • Toolbar Overflow. A menu for items that don’t fit the visible toolbar area will be created by default and can be disabled with the configuration option enableOverflow. Items in the menu react with the same handlers as the toolbar items.(译注:单的说就是Toolbar溢出后的滚动效果详见官方CZ)
  • 变更:
    • Toolbar and Menu are now proper Containers (formerly extended from BoxComponent).现在Toolbar和Menu都承Container
20.Ext.Tooltip
  • 新增:
    • delegate option added so one Tooltip can handle multiple child elements of its target based on selection using the delegate config.(译注:新增的这个属性很有用,是通过讄的selectorҎ个元素的子对象设|Tip,?.0的时候我们经帔R要的Gird RowTip,CellTip都可以实C,不需要实例化很多Tip对象)
    • AnchorTips - Tooltips now support an anchor configuration which will allow you to bring attention to a particular element or component with a small callout arrow.(译注:单的说就是箭头Tip,详见:http://extjs.com/deploy/dev/examples/simple-widgets/qtips.html)
21.Ext.util.Format
  • 新增/变更:
    • ellipsis() - "word" parameter added
    • focus() - "defer" parameter added
    • number() - added
    •  numberRenderer() - added
    • plural() - added
22.Ext.util.Observable
  • 新增:
    • Ext.util.Observable.observeClass() - Class level observability cȝ别的观察/通知
23.ux's that worked prior to 3.x may need some tweaking (especially if the ux used private properties). ux's should be checked they are utilizing the latest preferred techniques and properties. More notes here. 旧的扩展需要相应的q行修改,详见:http://extjs.com/forum/showthread.php?p=338913#post338913

24.CSS. general updates, as well as refactoring to split css into visual and structural files to simplify theming.

25.新增:图表Charting (Chart, PieChart, CartesianChart, LineChart, BarChart - numeric, time, category axis) -- (译注:其实是YUI Chart,可以?http://developer.yahoo.com/yui/charts/ , 或者可以看下我的blog:ExtJS 3.0 Chart 用一?http://atian25.javaeye.com/blog/413947)

26.新增:Ext.FlashComponent (译注:g是用了swfobject,理swf方便多了,不用adobe那又长又臭的代码)

27.新增:Direct (Direct, Ext.data.DirectStore, Ext.data.DirectProxy) - 官方3.0极力推出的东?详见:http://extjs.com/blog/2009/05/13/introducing-ext-direct/

28.新增:Writer

29.新增:Ext.Spacer - xtype 'spacer' (for empty box component)

30.新增:ButtonGroup (xtype: 'buttongroup')  (译注:按钮l?仿office2007风格,详见:http://extjs.com/deploy/dev/examples/button/buttons.html)


32.增强:Debug Console (译注:q是firebug好用,不过它可以看到store{?详见:http://extjs.com/deploy/dev/examples/debug/debug-console.html)

33.新增:Ext.Error


Changes to some example classes: CZcȝ修改
(不敢用javaeye~辑器的表格?.自己就着看吧...)

Class                                              x(p)type                Deprecates
Ext.ux.data.PagingMemoryProxy                                   Ext.data.PagingMemoryProxy
Ext.ux.form.FileUploadField             fileuploadfield         Ext.ux.FileUploadField
Ext.ux.form.SelectBox                     selectbox                Ext.ux.SelectBox
Ext.ux.form.SpinnerField                 spinnerfield             Ext.form.SpinnerField (remove xtype=spinner)
Ext.ux.form.ItemSelector                 itemselector           Ext.ux.ItemSelector
Ext.ux.form.MultiSelect                    multiselect              Ext.ux.Multiselect  
Ext.ux.grid.CheckColumn                checkcolumn (p)      
Ext.ux.grid.GroupSummary                                            Ext.grid.GroupSummary
Ext.ux.grid.HybridSummary                                            Ext.grid.HybridSummary
Ext.ux.grid.RowEditor                     roweditor   (p)
Ext.ux.grid.RowExpander               rowexpander (p)      Ext.grid.RowExpander
Ext.ux.grid.TableGrid                                                       Ext.grid.TableGrid
Ext.ux.GMapPanel                          gmappanel
Ext.ux.SliderTip
Ext.ux.SlidingPager
Ext.ux.Spinner               
Ext.ux.Spotlight                                                              Ext.Spotlight
Ext.ux.Statusbar                                                            Ext.Statusbar
Ext.ux.TabCloseMenu                    tabclosemenu (p)
Ext.ux.tree.ColumnTree                 columntree              Ext.tree.ColumnTree
Ext.ux.tree.ColumnNodeUI                                            Ext.tree.ColumnNodeUI
Ext.ux.tree.XmlTreeLoader                                            Ext.ux.XmlTreeLoader

Changes to Resources 资源的变?/strong>
  • Ensure you have updated all the Ext-provided CSS with the new CSS from version 3.
  • Ensure you have updated all the Ext-provided images with the new images from version 3.
Additional References 其他参?/strong>


天猪 2009-07-15 13:26 发表评论
]]>[原创]Extjs 3.0 Chart 用一?/title><link>http://www.aygfsteel.com/atian25/articles/ExtJS_Chart.html</link><dc:creator>天猪</dc:creator><author>天猪</author><pubDate>Wed, 01 Jul 2009 02:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/atian25/articles/ExtJS_Chart.html</guid><wfw:comment>http://www.aygfsteel.com/atian25/comments/284891.html</wfw:comment><comments>http://www.aygfsteel.com/atian25/articles/ExtJS_Chart.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/atian25/comments/commentRss/284891.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/atian25/services/trackbacks/284891.html</trackback:ping><description><![CDATA[     摘要: http://atian25.javaeye.com/blog/413947 实际上就是YUI CHART, 具体的文档可以看: http://developer.yahoo.com/yui/charts/ 先上个图: 代码如下: 1.定义store Code highlighting produced by Actipro CodeHighlighter (fr...  <a href='http://www.aygfsteel.com/atian25/articles/ExtJS_Chart.html'>阅读全文</a><img src ="http://www.aygfsteel.com/atian25/aggbug/284891.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/atian25/" target="_blank">天猪</a> 2009-07-01 10:28 <a href="http://www.aygfsteel.com/atian25/articles/ExtJS_Chart.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[原创]EXTJS双击TabPanel标签关闭该页http://www.aygfsteel.com/atian25/articles/284888.html天猪天猪Wed, 01 Jul 2009 02:23:00 GMThttp://www.aygfsteel.com/atian25/articles/284888.htmlhttp://www.aygfsteel.com/atian25/comments/284888.htmlhttp://www.aygfsteel.com/atian25/articles/284888.html#Feedback0http://www.aygfsteel.com/atian25/comments/commentRss/284888.htmlhttp://www.aygfsteel.com/atian25/services/trackbacks/284888.html 1 var tabs = new Ext.TabPanel({  
 2     renderTo: 'tabs1',  
 3     width:450,  
 4     activeTab: 0,  
 5     frame:true,  
 6     defaults:{autoHeight: true},  
 7     items:[  
 8         {contentEl:'script', title: 'Short Text'},  
 9         {contentEl:'markup', title: 'Long Text'}  
10     ],  
11     initEvents : function(){  
12             Ext.TabPanel.superclass.initEvents.call(this);  
13             this.on('add', this.onAdd, this, {target: this});  
14             this.on('remove', this.onRemove, this, {target: this});  
15             this.mon(this.strip, 'mousedown', this.onStripMouseDown, this);  
16             this.mon(this.strip, 'contextmenu', this.onStripContextMenu, this);  
17             if(this.enableTabScroll){  
18                 this.mon(this.strip, 'mousewheel', this.onWheel, this);  
19             }  
20             //ADD:monitor title dbclick  
21             this.mon(this.strip,'dblclick',this.onTitleDbClick,this);  
22         },  
23                  //ADD: handler  
24         onTitleDbClick:function(e,target,o){  
25             var t = this.findTargets(e);  
26             if (t.item.fireEvent('beforeclose', t.item) !== false) {  
27                         t.item.fireEvent('close', t.item);  
28                         this.remove(t.item);                  
29                    }  
30         }  
31 });


天猪 2009-07-01 10:23 发表评论
]]>
[原创]ExtJS Grid 自定义排序规?/title><link>http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_CustomSort.html</link><dc:creator>天猪</dc:creator><author>天猪</author><pubDate>Wed, 01 Jul 2009 02:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_CustomSort.html</guid><wfw:comment>http://www.aygfsteel.com/atian25/comments/284886.html</wfw:comment><comments>http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_CustomSort.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/atian25/comments/commentRss/284886.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/atian25/services/trackbacks/284886.html</trackback:ping><description><![CDATA[<p>有一些需求如:</p> <p>1.一个文件管理的Grid,要求排序的时?文gҎq在剙</p> <p>2.一个显C成功率的Grid,要求成功?p|?0的数?不参与排?永远在底?/p> <p>ExtJs本nq没有暴露这个接?所以我们只能自己重?如下代码:</p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> store </span><span style="color: rgb(0, 0, 0);">=</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);"> Ext.data.JsonStore({  <br /> </span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);">  root:'data',  <br /> </span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);">  fields:[  <br /> </span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);">    'name',  <br /> </span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);">    {name:'sucCount',type:'</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">'},  <br /> </span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);">    {name:'failCount',type:'</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">'},  <br /> </span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);">    {name:'sucRate',type:'</span><span style="color: rgb(0, 0, 255);">float</span><span style="color: rgb(0, 0, 0);">'},  <br /> </span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);">    {name:'isValidateTest',type:'</span><span style="color: rgb(0, 0, 255);">boolean</span><span style="color: rgb(0, 0, 0);">'},  <br /> </span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);">    {name:'statType',type:'</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">'},  <br /> </span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">    'testLogIds','bsc','msc','sgsn'  <br /> </span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">  ],  <br /> </span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);">  sortInfo:{field: 'sucRate', direction: 'ASC'},  <br /> </span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);">  </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 /> </span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);">  sortData:</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(f, direction){  <br /> </span><span style="color: rgb(0, 128, 128);">15</span> <span style="color: rgb(0, 0, 0);">    direction </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> direction </span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);"> 'ASC';  <br /> </span><span style="color: rgb(0, 128, 128);">16</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> dir </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> direction </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> 'ASC' </span><span style="color: rgb(0, 0, 0);">?</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);"> : </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);">;  <br /> </span><span style="color: rgb(0, 128, 128);">17</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> st </span><span style="color: rgb(0, 0, 0);">=</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);">.fields.get(f).sortType;  <br /> </span><span style="color: rgb(0, 128, 128);">18</span> <span style="color: rgb(0, 0, 0);">    </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 /> </span><span style="color: rgb(0, 128, 128);">19</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fn </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);">(r1, r2){  <br /> </span><span style="color: rgb(0, 128, 128);">20</span> <span style="color: rgb(0, 0, 0);">      </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(0, 0, 0);">r1.get('isValidateTest')</span><span style="color: rgb(0, 0, 0);">||!</span><span style="color: rgb(0, 0, 0);">r2.get('isValidateTest')){  <br /> </span><span style="color: rgb(0, 128, 128);">21</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">无效数据永远在下?nbsp; </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">22</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(0, 0, 0);">r1.get('isValidateTest') </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> dir : </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">dir;  <br /> </span><span style="color: rgb(0, 128, 128);">23</span> <span style="color: rgb(0, 0, 0);">      }</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);">{  <br /> </span><span style="color: rgb(0, 128, 128);">24</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> v1 </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> st(r1.data[f]), v2 </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> st(r2.data[f]);  <br /> </span><span style="color: rgb(0, 128, 128);">25</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> v1 </span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"> v2 </span><span style="color: rgb(0, 0, 0);">?</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);"> : (v1 </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);"> v2 </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);">1</span><span style="color: rgb(0, 0, 0);"> : </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">);  <br /> </span><span style="color: rgb(0, 128, 128);">26</span> <span style="color: rgb(0, 0, 0);">      }  <br /> </span><span style="color: rgb(0, 128, 128);">27</span> <span style="color: rgb(0, 0, 0);">    };  <br /> </span><span style="color: rgb(0, 128, 128);">28</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);">.data.sort(direction, fn);  <br /> </span><span style="color: rgb(0, 128, 128);">29</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">if</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);">.snapshot </span><span style="color: rgb(0, 0, 0);">&&</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);">.snapshot </span><span style="color: rgb(0, 0, 0);">!=</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);">.data){  <br /> </span><span style="color: rgb(0, 128, 128);">30</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);">.snapshot.sort(direction, fn);  <br /> </span><span style="color: rgb(0, 128, 128);">31</span> <span style="color: rgb(0, 0, 0);">    }  <br /> </span><span style="color: rgb(0, 128, 128);">32</span> <span style="color: rgb(0, 0, 0);">  }  <br /> </span><span style="color: rgb(0, 128, 128);">33</span> <span style="color: rgb(0, 0, 0);">}); <br /> </span></div> <img src ="http://www.aygfsteel.com/atian25/aggbug/284886.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/atian25/" target="_blank">天猪</a> 2009-07-01 10:20 <a href="http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_CustomSort.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[原创]ExtJS Grid tooltip的几U实现方?/title><link>http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_tooltip.html</link><dc:creator>天猪</dc:creator><author>天猪</author><pubDate>Wed, 01 Jul 2009 02:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_tooltip.html</guid><wfw:comment>http://www.aygfsteel.com/atian25/comments/284885.html</wfw:comment><comments>http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_tooltip.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/atian25/comments/commentRss/284885.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/atian25/services/trackbacks/284885.html</trackback:ping><description><![CDATA[<p><strong><a target="_blank" >http://atian25.javaeye.com/blog/417361</a><br /> </strong></p> <p><strong>1.表头提示</strong> </p> <p>?.2里面是设|?a class="external text" title="http://extjs.com/deploy/dev/docs/?class=Ext.grid.ColumnModel&member=tooltip" rel="nofollow" >ColumnModel.tooltip</a> <span id="wmqeeuq" class="external text"> ,3.0则是Column.</span> <span id="wmqeeuq" class="Apple-style-span" style="border-collapse: separate; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; white-space: normal; font-family: Simsun; color: rgb(0, 0, 0); font-size: medium;"><span id="wmqeeuq" class="Apple-style-span" style="font-size: 13px; font-weight: bold; font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;"><a style="color: rgb(8, 55, 114); text-decoration: none;" target="_blank">tooltip</a> </span> </span> <span id="wmqeeuq" class="external text"> 如下:</span></p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 128, 128);">1</span> <span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> grid </span><span style="color: rgb(0, 0, 0);">=</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);"> Ext.grid.GridPanel({  <br /> </span><span style="color: rgb(0, 128, 128);">2</span> <span style="color: rgb(0, 0, 0);">  columns:[  <br /> </span><span style="color: rgb(0, 128, 128);">3</span> <span style="color: rgb(0, 0, 0);">    {header:'名称',dataIndex:'name',tooltip:'对象名称'},  <br /> </span><span style="color: rgb(0, 128, 128);">4</span> <span style="color: rgb(0, 0, 0);">    {header:'开始时?nbsp;</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> l束旉 </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">br</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);">p|</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">成功?, dataIndex:'sucRate',tooltip:'成功</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">p|</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">成功?}  <br /> </span><span style="color: rgb(0, 128, 128);">5</span> <span style="color: rgb(0, 0, 0);">  ]  <br /> </span><span style="color: rgb(0, 128, 128);">6</span> <span style="color: rgb(0, 0, 0);">}); <br /> </span></div> <br /> <p><strong>2.单元格提C?/strong> </p> <p><strong>1)使用Ext.QuickTips</strong> </p> <p>在开始的时候就执行Ext.QuickTips.init();</p> <p>然后寚w要提C的单元?重写renderer函数,dext:qtitle , ext:qtipq?个属性即可?/p> <p>q个在官方的FAQ上有详细描述: <a target="_blank">http://extjs.com/learn/Ext_FAQ_Grid#Add_ToolTip_or_Qtip</a> </p> <p>代码:</p> <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">option 1  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 2</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 /> </span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);">renderer </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);"> (data, metadata, record, rowIndex, columnIndex, store) {  <br /> </span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">build the qtip:  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> title </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> 'Details </span><span style="color: rgb(0, 0, 255);">for</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);"> value </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);"> record.get('month') </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);"> 6</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);"> record.get('year');  <br /> </span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> tip </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> record.get('sunday_events');  <br /> </span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);">    metadata.attr </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> 'ext:qtitle</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">' + title + '</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);"> ' ext:qtip</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">' + tip + '</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">';  <br /> </span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">return the display text:  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> displayText </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 style</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">color: #000;</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);"> value </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);">><</span><span style="color: rgb(0, 0, 0);">br </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 /> </span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);">        record.get('sunday_events_short');  <br /> </span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> displayText;  <br /> </span><span style="color: rgb(0, 128, 128);">15</span> <span style="color: rgb(0, 0, 0);">};  <br /> </span><span style="color: rgb(0, 128, 128);">16</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">17</span> <span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">option 2  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">18</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 /> </span><span style="color: rgb(0, 128, 128);">19</span> <span style="color: rgb(0, 0, 0);">renderer </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);"> (data, metadata, record, rowIndex, columnIndex, store) {  <br /> </span><span style="color: rgb(0, 128, 128);">20</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> qtip </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 /> </span><span style="color: rgb(0, 128, 128);">21</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(data </span><span style="color: rgb(0, 0, 0);">>=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">){  <br /> </span><span style="color: rgb(0, 128, 128);">22</span> <span style="color: rgb(0, 0, 0);">        qtip </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);"> qtip='yeah'/></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;  <br /> </span><span style="color: rgb(0, 128, 128);">23</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">return</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 style</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">color:green;</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);"> qtip </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> data </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);">></span><span style="color: rgb(0, 0, 0);">';  <br /> </span><span style="color: rgb(0, 128, 128);">24</span> <span style="color: rgb(0, 0, 0);">    }</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(data </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">){  <br /> </span><span style="color: rgb(0, 128, 128);">25</span> <span style="color: rgb(0, 0, 0);">        qtip </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);"> qtip='woops'/></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;  <br /> </span><span style="color: rgb(0, 128, 128);">26</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">return</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 style</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">color:red;</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);"> qtip </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> data </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);">></span><span style="color: rgb(0, 0, 0);">';  <br /> </span><span style="color: rgb(0, 128, 128);">27</span> <span style="color: rgb(0, 0, 0);">    }  <br /> </span><span style="color: rgb(0, 128, 128);">28</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> data;  <br /> </span><span style="color: rgb(0, 128, 128);">29</span> <span style="color: rgb(0, 0, 0);">};  <br /> </span><span style="color: rgb(0, 128, 128);">30</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">31</span> <span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">option 3  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">32</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 /> </span><span style="color: rgb(0, 128, 128);">33</span> <span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> qtipTpl </span><span style="color: rgb(0, 0, 0);">=</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);"> Ext.XTemplate(  <br /> </span><span style="color: rgb(0, 128, 128);">34</span> <span style="color: rgb(0, 0, 0);">    '</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">h3</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">Phones:</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">h3</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">',  <br /> </span><span style="color: rgb(0, 128, 128);">35</span> <span style="color: rgb(0, 0, 0);">    '</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">tpl </span><span style="color: rgb(0, 0, 255);">for</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);">',  <br /> </span><span style="color: rgb(0, 128, 128);">36</span> <span style="color: rgb(0, 0, 0);">    '</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">div</span><span style="color: rgb(0, 0, 0);">><</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);">{phoneType}:</span><span style="color: rgb(0, 0, 0);"></</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);"> {phoneNumber}</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">div</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">',  <br /> </span><span style="color: rgb(0, 128, 128);">37</span> <span style="color: rgb(0, 0, 0);">    '</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">tpl</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">'  <br /> </span><span style="color: rgb(0, 128, 128);">38</span> <span style="color: rgb(0, 0, 0);">);  <br /> </span><span style="color: rgb(0, 128, 128);">39</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">40</span> <span style="color: rgb(0, 0, 0);">renderer </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);"> (data, metadata, record, rowIndex, columnIndex, store) {  <br /> </span><span style="color: rgb(0, 128, 128);">41</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">42</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> get data   </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">43</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> data </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> record.data;  <br /> </span><span style="color: rgb(0, 128, 128);">44</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">45</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> convert phones to array (only once)   </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">46</span> <span style="color: rgb(0, 0, 0);">    data.phones </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> Ext.isArray(data.phones) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);">47</span> <span style="color: rgb(0, 0, 0);">        data.phones :   <br /> </span><span style="color: rgb(0, 128, 128);">48</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);">.getPhones(data.phones);  <br /> </span><span style="color: rgb(0, 128, 128);">49</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">50</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> create tooltip   </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">51</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> qtip </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> qtipTpl.apply(data.phones);  <br /> </span><span style="color: rgb(0, 128, 128);">52</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">53</span> <span style="color: rgb(0, 0, 0);">    metadata.attr </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> 'ext:qtitle</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">' + title + '</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);"> ' ext:qtip</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">' + tip + '</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">';  <br /> </span><span style="color: rgb(0, 128, 128);">54</span> <span style="color: rgb(0, 0, 0);">   <br /> </span><span style="color: rgb(0, 128, 128);">55</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">return the display text:  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">56</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> data;      <br /> </span><span style="color: rgb(0, 128, 128);">57</span> <span style="color: rgb(0, 0, 0);">}; <br /> </span></div> <br /> <p><strong>2)使用ToolTip</strong> </p> <p>官方也已l给出方?</p> <p><a target="_blank">http://extjs.com/forum/showthread.php?p=112125#post112125</a> </p> <p><a target="_blank">http://extjs.com/forum/showthread.php?t=55690</a> </p> <p>以上l出的方法是可以让一个grid里面的元素共享一个tooltip对象。一般用来做rowtip</p> <p>不过3.0有更好的方式,如下:</p> <p> </p> <p><strong>3.行提C?RowTip</strong> </p> <p>ExtJS3.0新增的方?讄tooltip?span class="Apple-style-span" style="border-collapse: separate; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; white-space: normal; font-family: Simsun; color: rgb(0, 0, 0); font-size: medium;"><span id="wmqeeuq" class="Apple-style-span" style="font-size: 13px; font-weight: bold; font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;"><a style="color: rgb(8, 55, 114); text-decoration: none;" target="_blank">delegate</a> </span> </span> </p> <p>代码:</p> <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> myGrid </span><span style="color: rgb(0, 0, 0);">=</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);"> Ext.grid.gridPanel(gridConfig);  <br /> </span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);">myGrid.on('render', </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(grid) {  <br /> </span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> store </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> grid.getStore();  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> Capture the Store.  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> view </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> grid.getView();    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> Capture the GridView.  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);">    myGrid.tip </span><span style="color: rgb(0, 0, 0);">=</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);"> Ext.ToolTip({  <br /> </span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);">        target: view.mainBody,    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> The overall target element.  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">        delegate: '.x</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">grid3</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">row', </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> Each grid row causes its own seperate show and hide.  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);">        trackMouse: </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">,         </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> Moving within the row should not hide the tip.  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);">        renderTo: document.body,  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> Render immediately so that tip.body can be referenced prior to the first show.  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">15</span> <span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);">16</span> <span style="color: rgb(0, 0, 0);">        listeners: {              </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> Change content dynamically depending on which element triggered the show.  </span><span style="color: rgb(0, 128, 0);"><br /> </span><span style="color: rgb(0, 128, 128);">17</span> <span style="color: rgb(0, 0, 0);">  <br /> </span><span style="color: rgb(0, 128, 128);">18</span> <span style="color: rgb(0, 0, 0);">            beforeshow: </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> updateTipBody(tip) {  <br /> </span><span style="color: rgb(0, 128, 128);">19</span> <span style="color: rgb(0, 0, 0);">                </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> rowIndex </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> view.findRowIndex(tip.triggerElement);  <br /> </span><span style="color: rgb(0, 128, 128);">20</span> <span style="color: rgb(0, 0, 0);">                tip.body.dom.innerHTML </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);">Over Record ID </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);"> store.getAt(rowIndex).id;  <br /> </span><span style="color: rgb(0, 128, 128);">21</span> <span style="color: rgb(0, 0, 0);">            }  <br /> </span><span style="color: rgb(0, 128, 128);">22</span> <span style="color: rgb(0, 0, 0);">        }  <br /> </span><span style="color: rgb(0, 128, 128);">23</span> <span style="color: rgb(0, 0, 0);">    });  <br /> </span><span style="color: rgb(0, 128, 128);">24</span> <span style="color: rgb(0, 0, 0);">});  <br /> </span></div> <br /> <p><strong>4.其他Ҏ</strong> </p> 监听GridView或Store的事?然后通过rowSelector或getRowҎ来遍?自己加tooltip... q个方式h视吧<br /> <strong></strong> <p> </p> <img src ="http://www.aygfsteel.com/atian25/aggbug/284885.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/atian25/" target="_blank">天猪</a> 2009-07-01 10:14 <a href="http://www.aygfsteel.com/atian25/archive/2009/07/01/ExtJS_Grid_tooltip.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IE7/FF3可用的获取异常发生所在的行数http://www.aygfsteel.com/atian25/archive/2008/09/26/231293.html天猪天猪Fri, 26 Sep 2008 06:26:00 GMThttp://www.aygfsteel.com/atian25/archive/2008/09/26/231293.htmlhttp://www.aygfsteel.com/atian25/comments/231293.htmlhttp://www.aygfsteel.com/atian25/archive/2008/09/26/231293.html#Feedback0http://www.aygfsteel.com/atian25/comments/commentRss/231293.htmlhttp://www.aygfsteel.com/atian25/services/trackbacks/231293.html  
    * description: 错误描述 (仅IE可用).
    * fileName: 出错的文件名 (仅Mozilla可用).
    * lineNumber: 出错的行?(仅Mozilla可用).
    * message: 错误信息 (在IE下同description)
    * name: 错误cd.
    * number: 错误代码 (仅IE可用).
    * stack: 像Java中的Stack Trace一L错误堆栈信息 (仅Mozilla可用).


在IE里面没有lineNumber. 但可用下面的Ҏ扑և:

http://forum.byr.edu.cn/wForum/disparticle.php?boardName=SoftDesign&ID=29948&pos=6&page=1

 1 <script type="text/javascript">
 2 window.onerror=testError;
 3 function testError(){
 4  arglen=arguments.length;
 5  var errorMsg="参数个数Q?/span>"+arglen+"?/span>";
 6  for(var i=0;i<arglen;i++){
 7   errorMsg+="\n参数"+(i+1)+"Q?/span>"+arguments[i];
 8  }
 9  alert(errorMsg);
10  window.onerror=null;
11  return true;
12 }
13  
14 function test(){
15  error
16 }
17 test()
18 </script>



天猪 2008-09-26 14:26 发表评论
]]>
[原创]导出Google Chrome 书签的办?/title><link>http://www.aygfsteel.com/atian25/articles/227671.html</link><dc:creator>天猪</dc:creator><author>天猪</author><pubDate>Mon, 08 Sep 2008 02:36:00 GMT</pubDate><guid>http://www.aygfsteel.com/atian25/articles/227671.html</guid><wfw:comment>http://www.aygfsteel.com/atian25/comments/227671.html</wfw:comment><comments>http://www.aygfsteel.com/atian25/articles/227671.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/atian25/comments/commentRss/227671.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/atian25/services/trackbacks/227671.html</trackback:ping><description><![CDATA[<span style="word-spacing: 0px; font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2;"> <div style="margin: 0px; padding: 0px; cursor: pointer;">试用了几天的Chrome?感觉不错,期待插g接口的开?..<br /> 最新的Chrome的下载地址?<a style="color: #002c99; text-decoration: none;" >http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/</a><br /> <br /> 今天无聊,Z看了下Chrome的文?路径在C:\Documents and Settings\你的用户名\Local Settings\Application Data\Google\Chrome\User Data\Default 下面,有个History文g.<br /> <br /> 用UE打开后发现是SQLITE文g,于是用SQLITE打开(下蝲地址:http://www.sqlite.org/sqlite-3_6_2.zip)<br /> 操作Ҏ如下:<br /> 1)用sqlite3.exe打开History文g<br /> 2)?.tables 命o可以看到有图中几个表,从名字我们可以看出有下蝲记录,书签,讉K记录{等<br /> 3)?.output starred.txt 把输出重定向到文?br /> 4)?.dump starred 把书{表导出<br /> 5)接着L下starred.txt文gOK?<br /> <br /> 文g大致如下,熟悉sql的可以分析下l构(如type=2是文件夹,type=1/3是默认的,type=0是书{?<br /> 可以通过q个办法对书{进行分l管理等转换<br /> <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #008080;"> 1</span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /><span style="color: #0000ff;">BEGIN</span><span style="color: #000000;"> </span><span style="color: #0000ff;">TRANSACTION</span><span style="color: #000000;">;<br /> </span><span style="color: #008080;"> 2</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /><br /> </span><span style="color: #008080;"> 3</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">CREATE</span><span style="color: #000000;"> </span><span style="color: #0000ff;">TABLE</span><span style="color: #000000;"> starred (id </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #0000ff;">PRIMARY</span><span style="color: #000000;"> </span><span style="color: #0000ff;">KEY</span><span style="color: #000000;">,type </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #808080;">NOT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">NULL</span><span style="color: #000000;"> </span><span style="color: #0000ff;">DEFAULT</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,url_id </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #808080;">NOT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">NULL</span><span style="color: #000000;"> </span><span style="color: #0000ff;">DEFAULT</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,group_id </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #808080;">NOT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">NULL</span><span style="color: #000000;"> </span><span style="color: #0000ff;">DEFAULT</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,title </span><span style="font-weight: bold; color: #000000;">VARCHAR</span><span style="color: #000000;">,date_added </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #808080;">NOT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">NULL</span><span style="color: #000000;">,visual_order </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #0000ff;">DEFAULT</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,parent_id </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #0000ff;">DEFAULT</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,date_modified </span><span style="font-weight: bold; color: #000000;">INTEGER</span><span style="color: #000000;"> </span><span style="color: #0000ff;">DEFAULT</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;"> </span><span style="color: #808080;">NOT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">NULL</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;"> 4</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /><br /> </span><span style="color: #008080;"> 5</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">INSERT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INTO</span><span style="color: #000000;"> "starred" </span><span style="color: #0000ff;">VALUES</span><span style="color: #000000;">(</span><span style="font-weight: bold; color: #800000;">1</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">1</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">1</span><span style="color: #000000;">,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">书签?/span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864879599272250</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864903712413875</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;"> 6</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">INSERT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INTO</span><span style="color: #000000;"> "starred" </span><span style="color: #0000ff;">VALUES</span><span style="color: #000000;">(</span><span style="font-weight: bold; color: #800000;">2</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">3</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">2</span><span style="color: #000000;">,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">其他书签</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864879599273250</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864901410029375</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;"> 7</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">INSERT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INTO</span><span style="color: #000000;"> "starred" </span><span style="color: #0000ff;">VALUES</span><span style="color: #000000;">(</span><span style="font-weight: bold; color: #800000;">29</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">3825</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">Gmail</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864881762934500</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">1</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">5</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;"> 8</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">INSERT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INTO</span><span style="color: #000000;"> "starred" </span><span style="color: #0000ff;">VALUES</span><span style="color: #000000;">(</span><span style="font-weight: bold; color: #800000;">30</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">438</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">Google Reader</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864881840111125</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">3</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">5</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;"> 9</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">INSERT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INTO</span><span style="color: #000000;"> "starred" </span><span style="color: #0000ff;">VALUES</span><span style="color: #000000;">(</span><span style="font-weight: bold; color: #800000;">31</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">3833</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">Google Docs</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864881878751125</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">2</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">5</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">INSERT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INTO</span><span style="color: #000000;"> "starred" </span><span style="color: #0000ff;">VALUES</span><span style="color: #000000;">(</span><span style="font-weight: bold; color: #800000;">32</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">2</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">5</span><span style="color: #000000;">,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">Google</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864881893109125</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">1</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864898849435375</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">INSERT</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INTO</span><span style="color: #000000;"> "starred" </span><span style="color: #0000ff;">VALUES</span><span style="color: #000000;">(</span><span style="font-weight: bold; color: #800000;">35</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">2</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">0</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">7</span><span style="color: #000000;">,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">Book</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864882141057000</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">3</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">1</span><span style="color: #000000;">,</span><span style="font-weight: bold; color: #800000;">12864891426123000</span><span style="color: #000000;">);<br /> </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /><br /> </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">CREATE</span><span style="color: #000000;"> </span><span style="color: #0000ff;">INDEX</span><span style="color: #000000;"> starred_index </span><span style="color: #0000ff;">ON</span><span style="color: #000000;"> starred(id,url_id);<br /> </span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" alt="" align="top" /></span><span style="color: #0000ff;">COMMIT</span><span style="color: #000000;">;</span></div> <br /> <br /> 导入的方法也差不?把用.import指o。熟悉sql命o的h都知道怎么弄了,?help可以看到sqlite支持的命?br /> <br /> CZ?<br /> <img alt="" src="http://www.aygfsteel.com/images/blogjava_net/atian25/Chrome.JPG" width="447" height="270" /><br /> <br /> ps:?..该文章用CHROME写的..发布按钮按了无效...复制到IE7d布了..<br /> ps2:最新的<span style="word-spacing: 0px; font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2;">Chromium</span>数据存在:Local Settings\Application Data\Chromium\User Data\Default ?书签存在Bookmarks文g里面,不再存在History里面.<br /> 该文件格式如?<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008080;"> 1</span> <span style="color: #000000;">{<br /> </span><span style="color: #008080;"> 2</span> <span style="color: #000000;">   "roots": {<br /> </span><span style="color: #008080;"> 3</span> <span style="color: #000000;">      "bookmark_bar": {<br /> </span><span style="color: #008080;"> 4</span> <span style="color: #000000;">         "children": [ {<br /> </span><span style="color: #008080;"> 5</span> <span style="color: #000000;">            "date_added": "12865419024859500",<br /> </span><span style="color: #008080;"> 6</span> <span style="color: #000000;">            "name": "Google",<br /> </span><span style="color: #008080;"> 7</span> <span style="color: #000000;">            "type": "url",<br /> </span><span style="color: #008080;"> 8</span> <span style="color: #000000;">            "url": "http://www.google.cn/"<br /> </span><span style="color: #008080;"> 9</span> <span style="color: #000000;">         } ],<br /> </span><span style="color: #008080;">10</span> <span style="color: #000000;">         "date_added": "0",<br /> </span><span style="color: #008080;">11</span> <span style="color: #000000;">         "date_modified": "12865419024859500",<br /> </span><span style="color: #008080;">12</span> <span style="color: #000000;">         "name": "\u4E66\u7B7E\u680F",<br /> </span><span style="color: #008080;">13</span> <span style="color: #000000;">         "type": "folder"<br /> </span><span style="color: #008080;">14</span> <span style="color: #000000;">      },<br /> </span><span style="color: #008080;">15</span> <span style="color: #000000;">      "other": {<br /> </span><span style="color: #008080;">16</span> <span style="color: #000000;">         "children": [  ],<br /> </span><span style="color: #008080;">17</span> <span style="color: #000000;">         "date_added": "0",<br /> </span><span style="color: #008080;">18</span> <span style="color: #000000;">         "date_modified": "0",<br /> </span><span style="color: #008080;">19</span> <span style="color: #000000;">         "name": "\u5176\u4ED6\u4E66\u7B7E",<br /> </span><span style="color: #008080;">20</span> <span style="color: #000000;">         "type": "folder"<br /> </span><span style="color: #008080;">21</span> <span style="color: #000000;">      }<br /> </span><span style="color: #008080;">22</span> <span style="color: #000000;">   },<br /> </span><span style="color: #008080;">23</span> <span style="color: #000000;">   "version": 1<br /> </span><span style="color: #008080;">24</span> <span style="color: #000000;">}<br /> </span><span style="color: #008080;">25</span> </div> </div> </span> <img src ="http://www.aygfsteel.com/atian25/aggbug/227671.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/atian25/" target="_blank">天猪</a> 2008-09-08 10:36 <a href="http://www.aygfsteel.com/atian25/articles/227671.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ں</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">½</a>| <a href="http://" target="_blank">ͭ</a>| <a href="http://" target="_blank">˾</a>| <a href="http://" target="_blank">ʩ</a>| <a href="http://" target="_blank">̫</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ϳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">·</a>| <a href="http://" target="_blank">ֺ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">潭</a>| <a href="http://" target="_blank">˾</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">±</a>| <a href="http://" target="_blank">˳</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ڽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">üɽ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>