JavaScriptµÄ¹ØÓÚoption²Ù×÷µÄÎÊÌâ - Java / Web ¿ª·¢
JScript code:
<Html>
<Script>
function createOptions(){
var option = new Option(document.form1.select1.value)
document.form1.select2.options[2] = option
}
</script>
<form name=form1>
<select name=select1 size=10>
<option>¿ÉÑ¡ÔñÏîÄ¿
<option>---------------
<option value=Ï㽶>Ï㽶
<option value=°Å樂>°Å樂
<option value=蘋¹û>蘋¹û
<option value=Àæ×Ó>Àæ×Ó
</select>
<input type=button value="-->" onClick=createOptions()>
<select name=select2 size=10>
<option>Ñ¡ÔñÏîÄ¿
<option>---------------
</select></form>
</Body>
</Html>
ÎÊÌâÊÇÕâÑùµÄ£¬Õâ¶Î´úÂëʵÏÖ´Óselect1ÀïÃæÑ¡ÔñÒ»¸öoption·Åµ½select2ÀïÃ棬ÎÒÏëʵÏÖ¶àÏîÑ¡Ôñ²¢ÇÒÅжÏselect2ÀïÓÐûÓжÔÓ¦ÏûÓеĻ°Ôö¼ÓÓеĻ°Ìáʾ¡£ÔõôʵÏÖ£¿
select1ÖеÄÏîÐèÒªÇå³ýÂð£¿
Çå³ýÁËÒ²¿ÉÒÔ
лл¥ÉÏ Ñ§Ï°ÁË ÓÐʲôºÃµÄ×ÊÁÏ¿ÉÒÔÈÃÎÒϵͳµØѧһÏÂÂð
JS£º
JScript code:
<script type="text/javascript">
function changeOptions(){
var fruit1 = document.all.fruit1;
var fruit2 = document.all.fruit2;
for(var i=0; i<fruit1.options.le
Ïà¹ØÎÊ´ð£º
ÔõôÔÚ¿ØÖÆ̨ÖÐÊäÈëÀàËÆÏÂÃæµÄÐÅÏ¢£º
s1234 50
s1235 80
s1234 90
s1234 40
s1236 90
ÿµ±»Ø³µÊ± ......
¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£
´Ê¿âÔõôÉú³ÉÄØ£¿
²»»á¡£
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ
ÓÃmap ¼üÖµ¶ÔÓ¦
Èç¹ûÓÃÊý¾Ý¿ ......
ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:
package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......
ÇëÎʸ÷λ¸ç¸ç½ã½ã£¬ÈçºÎÔËÓÃÏֳɵÄÄ£°åÀ´ÖÆ×÷ƯÁÁµÄJSPÍøҳѽ,»ØÕßÓзÖ!
×Ô¼º¶¥Ï£¬×ÜÓиßÊÖ°É,ÆÚ´ýÖÐ......
Èç¹ûÖ±½ÓÒýÓýøÈ¥
¿ÉÒÔÖ±½ÓÓÃjspµÄÖ¸ÁҲ¿ÉÒÔÓÃfreemarkÒýÓ㬼ǵøø·Ö
лл¸÷λÁË£¬¿´À´Î ......
´ó¼ÒºÃ£¬ÎÒÔÚJSPµÄ³õѧÕߣ¬ÔÚ±à³ÌÖÐÓöµ½ÁËÒ»¸öÎÊÌ⣺
<jsp:useBean id="accountBiz" class="bank.AccountBiz"
scope="application">
Õâ¸ö±êÇ©ÖÐapplicationºÍsessi ......