2009年06月25日 星期四 19:34
In firefox, make Javascript.new like Ruby.new
Object.prototype['new']=function(){
var params=[];
var argc=arguments.length;
for(var i=0;i<argc;i++){
params.push('arguments['+i+']');
}
var code='return new this('+params.join(',')+');';
return new Function(code).apply(this,arguments);
} |
2009年06月20日 星期六 21:53
{
layout:"border",
items:[{
region:"center"
},{
region:"north",
tbar:[{
text:"reset"
},{
text:"showall"
}],
title:"gui builder"
},{
|
2009年06月18日 星期四 20:03
Ext.getBody().update('');
new Ext.TabPanel({renderTo:Ext.getBody(),
items:[{title:'demo',html:'content'},{title:'trend',autoLoad:{url:'/admin/domains/trend'}}],
autoHeight:true,
activeItem:1
}); |
2009年06月17日 星期三 14:40
Ext.get(document.body).update('<div id="test"></div>');
var tree=new Ext.tree.TreePanel({
renderTo: 'test',
width: '200px',
title: 'My Title',
collapsible: true,
root:new Ext.tree.AsyncTreeNode({text:'dd',children:[{text:'qq',leaf:true}]})
});
tree.render();
tree.expandAll();
--other--
http://extjs.com/lea |
2009年05月21日 星期四 17:41
2009年05月13日 星期三 19:20
2009年05月12日 星期二 16:30
2009年05月12日 星期二 14:54
2009年05月07日 星期四 11:36
2009年05月06日 星期三 13:40
To get rid of the zombies when child processes terminate you do not have to write a lot of code that uses complex stuff like message queues.
Instead you only set a signal handler:
pcntl_signal(SIGCHLD, SIG_IGN);
-----------------------------------
http://blog.csdn.net/simbi/archive/2009/04 |
|
|
|