阿刘个人Blog:
人生的机遇可遇不可求,当大多数人都不知道那是一个机遇时, 其实那是一个机遇;
当大多数人都以为那是一个机遇时, 其实那已经不再是一个机遇了。
谁先改变观念谁就拥有先机, 谁能改变别人的观念谁就拥有市场。
人这一辈子一定要明白:选择永远大于努力;
人生一定要懂得看着结果做事情。
黄金放错了地方也会被当成砖头。
创造机会的人是勇者;等待机会的人是愚者
--------------------------------------------------------------------------------
FusionChart的开发和FusionChart的常用XML接口属性
作者:阿刘 日期:2009-06-28

|
属性名称
|
类型
|
说名
|
|
font
|
String
|
字体
|
|
fontSize
|
Number
|
尺寸
|
|
fontColor
|
Color
|
颜色
|
|
属性
|
类型
|
说明
|
|
label
|
String
|
类别名称
|
|
showLabel
|
Boolean
|
是否显示名称
|
|
toolText
|
String
|
替称
|
|
属性
|
类型
|
说明
|
|
label
|
String
|
名称
|
|
value
|
Number
|
值
|
|
color
|
Color
|
颜色
|
|
link
|
String
|
链接调用JS方法:link=‘Javascript:method();’
|
|
toolText
|
String
|
替称
|
|
showLabel
|
Boolean
|
是否显示名称0/1
|
|
showValue
|
Boolean
|
是否显示值0/1
|
|
dashed
|
Boolean
|
是否用虚线0/1
|
|
alpha
|
Number
|
透明度0-100
|
|
属性名称
|
类型
|
说名
|
|
color
|
String
|
颜色
|
|
thickness
|
Number
|
粗线
|
关闭计算机指定端口
作者:阿刘 日期:2009-06-24
ExtJS2.1教程-5]ToolBar(工具栏)
作者:阿刘 日期:2009-06-15
面板中可以有工具栏,工具栏可以位于面板顶部或底部,Ext中工具栏是由Ext.Toolbar类来表示。工具栏上可以放按钮、文本、分隔符等内容。面板对象中内置了很多实用的工具,可以直接通过面板的tools配置选项往面板头部加入预定义的工具栏选项。
这里工具栏主要用于面板中(panel,window等)
这里我们使用toolbar.js toolbar.html来进行演示
下面我们演示一下在window中应用工具栏
我们先创建一个window
- Ext.onReady(function(){
- var win = new Ext.Window({
- width:400,
- height:300,
- title:"窗体"
- });
- win.show();
- });
我们可以看到右上角有一个关闭按钮 那其实就是一个头部工具栏按钮
window中有一个tools的配置选项,他的作用就是定义这个头部的工具栏,他接收的是一个数组
数组中的元素包含id,handle等一系列属性,其中id的值是通过Ext事先定义的一系列中选择填入的,handler是对应的响应事件。handler可以传递三个参数 Event,toolEl,panel
- Ext.onReady(function(){
- var win = new Ext.Window({
- width:400,
- height:300,
- title:"窗体",
- tools:[{
- id:"toggle"
- },{
- id:"close"
- },{
- id:"help"
- }]
- });
- win.show();
- });
这里还有一些属性比如qtip,on这里的on很特殊,可以是我们自定义的一些事件 比如鼠标移入等等具体可以参见addListener
这里需要说明的是在使用qtip之前需要调用Ext的qtip初始化方法
- Ext.onReady(function(){
- Ext.QuickTips.init();
- var win = new Ext.Window({
- width:400,
- height:300,
- title:"窗体",
- tools:[{
- id:"toggle",
- handler:function(e,t,p){
- },
- qtip:"hello"
- },{
- id:"close"
- },{
- id:"help"
- }]
- });
- win.show();
- });
tbar属性是顶部工具栏,可以有数组和object
我们先来看看ToolBar类,ToolBar的构造方法可以通过object或者数组类型的配置选项进行创建
- Ext.onReady(function(){
- Ext.QuickTips.init();
- var win = new Ext.Window({
- width:400,
- height:300,
- title:"窗体",
- tools:[{
- id:"toggle",
- handler:function(e,t,p){
- },
- qtip:"hello"
- },{
- id:"close"
- },{
- id:"help"
- }],
- tbar:new Ext.Toolbar({
- width:200,
- height:50
- })
- });
- win.show();
- });
Ext.Toolbar
作者:阿刘 日期:2009-06-15
java术语 PO/POJO/VO/BO/DAO/DTO
作者:阿刘 日期:2009-05-11
在o/r 映射的时候出现的概念,如果没有o/r映射,就没有这个概念存在了.通常对应数据模型(数据库),本身还有部分业务逻辑的处理.可以看成是与数据库中的表相映射的java对象.最简单的PO就是对应数据库中某个表中的一条记录,多个记录可以用PO的集合.PO中应该不包含任何对数据库的操作.
VO(value object) 值对象
通常用于业务层之间的数据传递,和PO一样也是仅仅包含数据而已.但应是抽象出的业务对象,可以和表对应,也可以不,这根据业务的需要.个人觉得同DTO(数据传输对象),在web上传递.
Java filter 几个过滤器例子
作者:阿刘 日期:2009-02-10
javascript内存泄露问题处理
作者:阿刘 日期:2008-12-31
引用自:http://www.codeproject.com/KB/scripting/leakpatterns.aspx
Introduction
If you are developing client-side re-usable scripting objects, sooner or later you will find yourself spotting out memory leaks. Chances are that your browser will suck memory like a sponge and you will hardly be able to find a reason why your lovely DHTML navigation's responsiveness decreases severely after visiting a couple of pages within your site.
A Microsoft developer Justing Rogers has described IE leak patterns in his excellent article.
In this article, we will review those patterns from a slightly different perspective and support it with diagrams and memory utilization graphs. We will also introduce several subtler leak scenarios. Before we begin, I strongly recommend you to read that article if you have not already read.
Why does the memory leak?
The problem of memory leakage is not just limited to Internet Explorer. Almost any browser (including but not limited to Mozilla, Netscape and Opera) will leak memory if you provide adequate conditions (and it is not that hard to do so, as we will see shortly). But (in my humble opinion, ymmv etc.) Internet Explorer is the king of leakers.







