re: JS怎么刷新當前頁面[未登錄] ke 2014-08-31 10:46
不能下載游戲
re: JS怎么刷新當前頁面[未登錄] ke 2014-08-31 10:45
為什么不能下載游戲
re: 資源分享[未登錄] Ke 2010-08-24 13:48
re: 下一個目標,下一個夢想 KE 2010-03-01 11:52
@landon
嗯,希望你能找到滿意的工作!
胡說八道,誤人子弟。inverse屬性是指定主控方的,cascade是級聯動作,就是說cascade指定的動作會在哪一端維護,要靠inverse來指定。兩者實現作用就不同,何來異同?
這個說的正確,inverse是制定主控方的,cascade是級聯動作,選all或其他例如save-update。
是的!再說SPRING和STRUTS2整合struts.xml中應該寫成這樣
<bean name="/login" class="LoginActionBean " singleton="false">@jiangsha
@ffychina
是個不錯的方法有空試試,謝了!
@yupeng_raul7@hotmail.com
數組下標越界了吧,照那異常來看,細心好好檢查下吧
re: db2常用命令大全[未登錄] ke 2008-08-15 10:10
樓主,問你個問題,我想從DB2上邊導數據出來.我機器裝了客戶端,怎么db2move都沒法用的.是不是只能遠程登到服務器上導啊.謝謝
re: Struts 2中的OGNL KE 2008-06-12 09:37
不錯
re: [轉]我的Java學習之路 KE 2008-03-03 12:35
學習JAVA就是這樣.
講得好了.很詳細啊.郁悶了幾天,終于運行成功了我的第一個JMS例子.很開心.得多謝文章的主人
問題解決了
只需要對查詢條件的字符內容進行編碼就行了.
new String(searchStr.getBytes("ISO-8859-1"))
嗯.把struts.devMode設置為false就沒有了
謝了.
這是SUN JVM特有的一個問題, SUN JVM用一個叫做permanent generation的內存區域內來存放classloader載入的class,method之類的object, 而普通object則是放到heap里.
IBM JVM則是把class和object都統一放到heap里,所以如果程序比較大的話,用IBM JVM更好一些,不需要調優就能更充分的利用內存空間。
@我為J狂
I don't quite aggree on the 1st rule, there are advice on this problem in mozilla.
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Statements:for...in"Although it may be tempting to use this as a way to iterate over an Array, this is a bad idea. The for...in statement iterates over user-defined properties in addition to the array elements, so if you modify the array's non-integer or non-positive properties (e.g. by adding a "foo" property to it or even by adding a method or property to Array.prototype), the for...in statement will return the name of your user-defined properties in addition to the numeric indexes. Also, because order of iteration is arbitrary, iterating over an array may not visit elements in numeric order. Thus it is better to use a traditional for loop with a numeric index when iterating over arrays."
The fifth one, I tested your code in FF2 and IE7, both alert "12".
var str="Java我選擇,我喜歡!";
var charLength=str.length;
May be there are problem in lower version.
For the first rule, it is a tirck, ARRAY IS KIND OF OBJECT
var arr = [];
arr[-1]=-1;//add an property named "-1" on arr OBJECT
arr[1]=1; //put a value whose index is 1 into arr ARRAY
for(var k in arr)alert("arr[" + k + "]=" + arr[k]);
alert("length = " + arr.length);
for(var i=0;i<arr.length;i++)alert("arr[" + i + "]=" +arr[i]);
Don't aggree on the third rule, closure can provide better encapsulation.
The rule should be use closure to support private properties when possible.
function Person(name,sex)
{
var action='run';//private property
this.run=function(){//public method
alert(action);
};
}
re: 某一會員的JAVA書籍 KE 2007-10-29 10:17
學習JAVA確實是如此啊,感覺自己上了大學,學了JAVA后,所看的書比未上大學之前所看的課外書要多得多,以前很少看書的除了課本,呵呵