Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascriptÎÊÌâ

ÓÐÒ»¸öJAVASCRIPTº¯Êý

function onCheck(){

if(document.getElementById("checKForm1").style.display=="none")
{
document.getElementByName("hasCheck").value=1;
}
else
{
document.getElementByName("hasCheck").value=0;
}
}


<input name="hasCheck" type="hidden" id="hasCheck"/>
<input type="button" value="Ìîд¿ªÆ±" onclick="onCheck()" name="openCheck" style="width:100px"/>


Ìá½»±íµ¥ºóÄǸöhasCheckûÓÐÊýÖµ£¬¿ÕµÄ
ºǫ́ÎÒÊÇÓÃ
String hasCheck=request.getParameter("hasCheck");

ÓÐûÓÐÈ˽âÊÍÒ»ÏÂÄØ£¿
ÄãÈ·¶¨JS û³ö´í£¿
ÎҼǵ÷½·¨ÊÇ
document.getElementByName("hasCheck").value=1;
document.getElementsByName

ÄãµÄǰ̨µÄÄǸöhanCheckÓÐÖµÂ𣿣¿£¿£¿

<input name="hasCheck" type="hidden" id="hasCheck"/>

ǰÌá°¦¾ÍÊÇÕâÑù£¬Ã»ÓÐĬÈÏÖµ

getElementByName ûÓÐÕâ¸ö·½·¨µÄ ¸Ä³É getElementById

µãµÄʱºò¿´¿´ä¯ÀÀ×óϽÇÊDz»ÊdzöÏÖ¸Ð̾ºÅÁË,Èç¹ûÌ«¿ìÁËû·¢Ïֵϰ,¾ÍÏȲ»ÒªÌá½»,±ÈÈç:return false;


document.getElementByName("hasCheck").value=1;
document.getElementsByName

document.getElementByName("hasCheck")


Ïà¹ØÎÊ´ð£º

ÐÂÈËjavascriptÎÊÌâÇóÖú£¬Çë¸÷λ´ó¸ç´ó½ãÃÇÀ´°ï棡

ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......

javaScript ÐüÍ£¸¡¶¯²ã¶¨Î»

ÈçºÎʵÏÖµ±Êó±êÐüÍ£¿Ø¼þÉÏʱ£¬³öÏָÿؼþµÄβ²¿ÏÔʾ¶ÔÓ¦µÄ²ã£¬Êó±êÒÆ¶¯µ½¸Ã²ãÉϽøÐÐÏàÓ¦µÄ²Ù×÷£¬µ±Êó±êÒÆ³ýʱ£¨²»ÔڿؼþÉÏÒ²²»ÔÚ²ãÉÏ£©²ãÒþ²Ø£¬

http://topic.csdn.net/u/20090830/23/5e5ded07-7216-46c2-9712- ......

Ȥζjavascript... - Web ¿ª·¢ / JavaScript

ÎÒÒ²À´Ò»¸öȤζjavascript:
´ò¿ªÒÔÏÂhtmlÎļþ,ÒÀ´Î°´ÏÂG,L,CÈý¸ö¼ü,¾Í»áÓÐÆæ¼£³öÏÖ!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ......

Õâ¶ÎJavaScript´úÂëΪʲôÎÞ·¨Ö´ÐÐ - .NET¼¼Êõ / C#

ÒÔÏÂÊÇÒ»¶ÎJavsScript½Å±¾£¬µ«ÔËÐÐʱ×Ü»á²úÉú ¡°Microsoft JScript ÔËÐÐʱ´íÎó: 'null' Ϊ¿Õ»ò²»ÊǶÔÏó¡±Òì³££¬´ó¼Ò°ï¿´Ò»Ï¡£ 
<form id="form1" runat="server">
  < ......

javascriptÈçºÎ¶ÁÈ¡struts2×ÊÔ´ÎļþÀïµÄÐÅÏ¢

·­¿´ÒÔǰµÄÌû×Ó£¬ÓÃstruts1¿ò¼Ü£¬¿ÉÒÔд³Éalert£¨<bean:message key="name.required"/>£©£»
struts2ÀïûÓÐBean±êÇ©ÁË£¬ÓÚÊdz¢ÊÔÓÃalert(<s:text name="name.required">);
½Å±¾±¨´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ