JavaScript¶¯Ì¬´´½¨ÔªËØ
ÎÒµÄÒ³ÃæÉÏÓÐÕâÑùÒ»¸öÔªËØ
JScript code:
<div>
²úÆ·Àà±ð£º<input type="text" name="productType" /><br />
²úƷͼƬ£º<input type="text" name="productImg" /><br />
²úÆ·Ãû³Æ£º<input type="text" name="productName" /><br />
²úƷ˵Ã÷£º<textarea rows="10" cols="50" name="productIntroduce"></textarea>
</div>
ÓÐÒ»¸ö°´Å¥£¬µã»÷ËüµÄʱºòµ÷ÓÃJavaScript£¬´´½¨Ò»¸ö²ã£¬²ãÀï°üº¬ÉÏÊö´úÂëËùʾµÄËùÓÐ±íµ¥ÔªËØ¡£¸ÃÈçºÎʵÏÖÄØ£¿
innerHTML
HTML code:
<div id="productDiv" style="display: none;">
²úÆ·Àà±ð£º<input type="text" name="productType" /><br />
²úƷͼƬ£º<input type="text" name="productImg" /><br />
²úÆ·Ãû³Æ£º<input type="text" name="productName" /><br />
²úƷ˵Ã÷£º<textarea rows="10" cols="50" name="productIntroduce"></textarea>
</div>
<input type="button" value="²é¿´" onClick="showProductDiv();" >
<script type="text/JavaScript"
Ïà¹ØÎÊ´ð£º
ÎÒÔÚºǫ́µ÷ÓÃJavaScriptµÄʱºò£¬ËûÊÇÔÚºǫ́°ÑʼþµÄ´úÂëÖ´ÐÐÒ»´ÎºóÔÚÖ´ÐÐJavaScript·½·¨
ÓÐʲô°ì·¨ ÔÚÖ´ÐÐJavaScript·½·¨µÄʱºòͣס£¬ÔÚÖ´ÐкóÃæµÄ´úÂë
²»Ì«Ã÷°×°¡£¬ËµÇå³þµã°É
¾ÍÊÇÖ´Ðкǫ́´úÂëµÄʱºò ......
ÎÒÏëÎÊÒ»ÏÂÈçºÎÓÃjavascript¶¯Ì¬ÊµÏÖÏñÎÒÃÇÕâ¸öÍøÕ¾×ó±ßµÄĿ¼£¬Ð»À²£¡
??
ºÇºÇ£¡Ð»Ð»°¡£¡
¶¥Ò»ÏÂ
ÄãÃÇÊÇʲôÍøÕ¾°¡£¬ÒªÊǺǫ́ÊÇjavaÖ±½Ójsp£¬Èç¹ûºǫ́ÊÇc£¬ÄǾÍÓÃcgiÉú³Éxml£¬js¶¯Ì¬È¥¶ÁxmlµÄÊý¾Ý
Ó ......
<html>
<head>
<script>
var a=prompt("ÇëÊäÈëÒ»¸öÊý");
if(a==0)
{alert("²»ÊÇÖÊÊý");}
else
{while((a%2)*(a%3)*(a%5)*(a%7)==0)
{alert("²»ÊÇÖÊÊý");br ......
function getusername()
{
var username = "<%=Session.getAttribute("adminName")%>";
alert(username);
}
Ìáʾ£ºSessionÖÐûÓж¨ ......
ÎÒµÄjspÊÇutf-8£¬ÎÒµÄjsÎļþÔõÑùתΪutf-8ÎÒÏÖÔÚÓõÄÊÇDreamweaver cs3 ÎÒÔÚjspÒýÈëjsʱ¾Í²»ÐС£¡£
»¹Óдó¼ÒÊÇÓÃʲôÀ´±à¼jsµÄ¡£ µ÷ÊÔÄØ
vs2008,eclipse
ÎÒÓÃmyeclipse¸üÐÂ×°spketºÍjseclipseµ«ÊÇ×îºó±¨´í¡£ÀË ......