Posted on 2006-01-11 14:40
yoyozy 閱讀(165)
評論(0) 編輯 收藏
數(shù)組 哈希表 屬性類
動態(tài)小數(shù)據(jù)操作是WEB開發(fā)中不可避免的,這就涉及到數(shù)組 哈希表 屬性類等幾個功能;本文提供本人常用語法和簡單解釋:
一般數(shù)組定義
//定義數(shù)組catalogs
public static final String[] catalogs =
{"Business","Entertainment","Law","Real
Estate","Medical","Services","Computers & Internet","Food","Other"};
//在form中逐個顯示數(shù)組內(nèi)容
<SELECT name="catalog">
文章來源:http://blog.donews.com/yoyozy/archive/2005/11/02/611872.aspx