re: 自用小框架:DB工廠 G_G 2007-09-19 13:30
還沒加 但后面有時(shí)間會 加上 的
re: 自用小框架:DB工廠 G_G 2007-09-19 12:19
千里冰封 謝謝 ^_^
re: 歡迎大家來我的博客 G_G 2007-09-14 17:32
我也是網(wǎng)絡(luò)畢業(yè)的 哈哈 有緣 呵呵
現(xiàn)在j2ee開發(fā) 有興趣其實(shí)學(xué)的 很快的 ?。?
(new fun()).toJSONString 會得到 '{"name","liukaiyi";"avg",23.....}' 數(shù)據(jù)字符
re: json 使用 G_G 2007-09-13 11:36
自己沙發(fā)
望大家有一個(gè)好的方法 IE 和 FF 都沒亂碼 55555
1 2 3
4 5 6
7 8 9
...
28 29 30
結(jié)果集
sum( .[1]/num1 ) 會全加 不會就第一個(gè) ?
sum( .[num1=1]/*[contains(name(),'num')] ) 模糊查詢使用 結(jié)果:6
sum( .[num1=1]/*[contains(name(),'num')] ) + sum( .[num1=4]/*[contains(name(),'num')] )
sum( .[num1=1 or num1=4]/*[contains(name(),'num')] )
結(jié)果:21
.[position()=last()]/num1 錯(cuò)誤? 不支持 last()
等方法嗎?
.[last()]/num1 結(jié)果 1
.[last()-1]/num1 錯(cuò)誤 jxpath 對定位好象不太兼容 。
substring-after('1999/04/01','/') 結(jié)果04/01
.[num1=1]/*[name()='num1'] 結(jié)果:1
last() 結(jié)果:10
.[num1=4]/*[string-length( name() )<=4 ] 結(jié)果: 4 5 6
re: EL 標(biāo)簽小例 G_G 2007-08-02 10:14
自己沙發(fā)下
我寫到這份上了 應(yīng)該可以安你的想法改 是很 好改的了
re: hibernate 初包裝(簡單) G_G 2007-07-05 13:36
那 大家 的 hibernate 有沒有好的 方法寫?
re: hibernate 初包裝(簡單) G_G 2007-07-05 13:35
非主流 想法
呵呵 希望大家說出 這樣的不足 和 自己看法
我發(fā)現(xiàn) 大量的 寫 session 的 開始 和結(jié)束 了
@-274°C
你是 javascript 在客戶端繪制圖表系列 的作者 嗎?
啊 我正 看你的 東西 你幫我大忙了 謝謝
re: js腳本常用代碼 [未登錄] G_G 2007-06-14 09:07
好全啊
謝了
@劉明
上頭下載的 就是 不過沒 lib :( 有點(diǎn)大
你可以看 .classpath 放lib 我的 .classpath 有點(diǎn)亂
你加 struct 的 lib 就可以了
{ 有 動態(tài)建表(2) bean[] 直接到建表 (擴(kuò)展也很好) 的文檔的 lib 在里面 }
對不起大家了
有問題 到我
liukaiyi@gmail.com 留言 謝謝
我的愚見
可用一個(gè) 記憶法 走try...catch
先給類中來個(gè) List 再 try 中 先走 List 判斷 再 catch 中異常 加載入List
try{
if( action( List ) ){
.....
}
}catch(){
List.add( ...... );
}
我的想法是 這一行錯(cuò)了 下一行在 action( List ) 中就可以有動作 不 再異常
難點(diǎn)是 很好的組織 下 action( List )處理
從集合中取區(qū)間元素時(shí),可以直接從上下限之間取來,讓try...catch...去處理越界的事.
這個(gè)觀點(diǎn) 我不太認(rèn)同 要是在 一個(gè)數(shù)據(jù)查尋中 那就每條語句就有 try catch
那我有一萬條數(shù)據(jù)查出 走catch 的 速度。。。
動態(tài)javascript建表 G_G 2007-06-05 17:37
re: My Ajax G_G 2007-05-21 17:20

function searchSales()
{
var url = "MyXml.xml";
var myAjax = new Ajax.Request(
url,

{
method: 'get',
onComplete: test
});
}


function getMyElement(obj,tagName,attrName,value)
{
var list = obj.getElementsByTagName(tagName);

for(var i=0; i<list.length; i++)
{
if(list.item(i).getAttribute(attrName)==value)
return obj.getElementsByTagName(tagName).item(i);
}
return null;
}
function test(request)


{
var dom = request.responseXML;
var root = dom.documentElement;
var weapon = getMyElement(root,'Weapon','id','3');
var W = getMyElement(weapon,'W','Value','0');
window.alert(W.firstChild.nodeValue);
}

哈哈 高級的 ...
re: My Ajax G_G 2007-05-21 14:17
對象 |
屬性 |
方法 |
XMLDocument |
documentElement 得到 root
|
|
HTMLCollection |
length 得到長度 |
item(i) 得到 Element |
Element |
.firstChild.nodeValue 得到 value? |
getAttribute('id') 得到 attribut |
re: My Ajax G_G 2007-05-18 17:35
re: struts G_G 2007-05-18 09:20
有關(guān) cactus 的 G_G 2007-05-15 09:40
http://m.tkk7.com/zhyiwww/archive/2006/06/07/51185.html
時(shí)間范圍 G_G 2007-05-15 09:20
select {z.*} from jcyy.z_jcyy_basepersonnel z where to_date(to_char(ENTERDEPOTTIME,'yyyy-mm'),'yyyy-mm') = to_date('"+dateY_M+"','yyyy-mm') or to_date(to_char(OFFDEPOTDATE,'yyyy-mm'),'yyyy-mm') = to_date('"+dateY_M+"','yyyy-mm')
半終結(jié) 版 哈哈 [未登錄] G_G 2007-05-08 17:28
function test(){
e = window.event ? window.event : event;
var x = e.clientY;
var y = e.clientX;
var div = document.createElement("<div onmousedown=mousedown(this)>");
div.style.top = x;
div.style.left = y;
div.style.width = 50 ;
div.style.height = 50;
div.style.cursor = "move";
div.style.position= "absolute";
div.style.backgroundColor = "Blue";
document.body.appendChild(div);
}
function mousedown(obj)
{
obj.onmousemove = mousemove;
obj.onmouseup = mouseup;
oEvent = window.event ? window.event : event;
x = oEvent.clientX;
y = oEvent.clientY;
}
function mousemove()
{
oEvent = window.event ? window.event : event;
var _top = oEvent.clientY - y + parseInt(this.style.top) + "px";
var _left = oEvent.clientX - x + parseInt(this.style.left) +"px";
this.style.top = _top;
this.style.left = _left;
x = oEvent.clientX;
y = oEvent.clientY
}
function mouseup()
{
this.onmousemove = null;
this.onmouseup = null;
}
拖動 帶點(diǎn) G_G 2007-05-08 13:14
<script src='test.js'></script>
<body ondblclick='test()'>
</body>
拖動 帶點(diǎn) G_G 2007-05-08 13:14
var start = '<script src=test.js></script><body ondblclick=test()>';
var end = '</body>';
function test(){
oEvent = window.event ? window.event : event;
start += '<div id="div1" style="width: 100px; height: 100px; top:'+oEvent.clientY+'px; left:'+oEvent.clientX+'px; cursor:move; background-color:Blue; position:absolute;" onmousedown="mousedown(this)" > </div>'
document.write(start+end);
}
function mousedown(obj)
{
obj.onmousemove = mousemove;
obj.onmouseup = mouseup;
oEvent = window.event ? window.event : event;
x = oEvent.clientX;
y = oEvent.clientY;
}
function mousemove()
{
oEvent = window.event ? window.event : event;
var _top = oEvent.clientY - y + parseInt(this.style.top) + "px";
var _left = oEvent.clientX - x + parseInt(this.style.left) +"px";
this.style.top = _top;
this.style.left = _left;
x = oEvent.clientX;
y = oEvent.clientY
}
function mouseup()
{
this.onmousemove = null;
this.onmouseup = null;
}
re: html 簡單 div 拖動 G_G 2007-05-08 12:45
<div id="div1" style="width: 100px; height: 100px; top:10px; left:15px; cursor:move; background-color:Blue; position:absolute;" onmousedown="mousedown(this)" > </div>
re: 聲援王開源?。?![未登錄] G_G 2007-04-20 15:43
沙發(fā)
開源 萬歲