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

ÓйØjavascriptµÄ¼òµ¥ÎÊÌâ

¸÷λºÃ:

ÓйØÒÉÎÊÊÇÕâÑùµÄ:

ÎÒÔÚÒ³ÃæÀïÃæ¼ÓÁËÒ»¶ÎJSµÄ´úÂëÖÐÓиöº¯Êý,´ó¸ÅÈçÏÂ:
JScript code:

<script language = javascript>
function test()
{
alert("testOK");
}
</script>



ÁíÍâÔÚºó¶Ë½Å±¾ÖÐÈçÏÂ:
C# code:

protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("<script language = javascript> test();</script> ");
}



²»ÐÐ,ÏÔʾº¯ÊýûÓб»Ö´ÐÐ.

µ«ÊÇÖ±½ÓÔÚºó¶Ëº¯ÊýÖÐÊä³ö¾Í¿ÉÒÔ
C# code:

protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("<script language = javascript> alert("testOK");</script> ");
}



×¢²á½Å±¾¡£

ÎÊÌâÊÇ:ÎÒµÄtestº¯ÊýÊÇÒ»¸ö¹«ÓõÄ,¶øÇÒÄÚÈݺܶà,Èç¹ûҪÿ¸öµØ·½ÖØиãÒ»±éÌ«Âé·³,ÓÐûÓÐʲôºÃµÄ·½·¨:¶¨ÒåÒ»¸öÕâÑùµÄJAVASCRIPT¹«Óú¯Êý,ÈÃÆäËûµØ·½µ÷ÓÃÄØ?ÒªÔõôµ÷ÓÃ?ÇëÎÊ.

ÒýÓÃ
×¢²á½Å±¾¡£


лл»Ø¸´?Ôõô×öÄØ?ллָµ¼.


u[p

C# code



Code highli


Ïà¹ØÎÊ´ð£º

ActiveXºÍJavaScriptµÄ½»»¥ÎÊÌâ

    ÎÊÌâÃèÊöÈçÏ£º
    ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌøתµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌøתµ½2.htm¡£
    Î ......

javascriptµÄ¼òµ¥ÔËËã

function Place14a(myform)
{
  var str,i;
  str = "&nbsp;";
  if(!fnIsIntNum(myform.Place14_Num.value))
      myform.Place14_Num.value=1; ......

ÎÊÒ»¸öjavascript \uµÄÏÔʾÎÊÌâ

<script language="javascript">
var ww = "\u00e7\u00e8";
alert(ww);
</script>

ÎÒÐèÒªÏÂÃæÕâÑùµÄд·¨£¬È»ºóºÍÉÏÃæÊä³öµÄ½á¹ûÏàͬ¡£¡£

<script ......

javascript ÑÓ³Ù onload

˵µ½ JavaScript µÄ³õʼ»¯×°ÔØ, ¿ÉÄÜ onload ÊDZ»Á¢¿ÌÏëµ½µÄ·½·¨. µ«ÊÇ onload ²»ÊÇÔÚ document ¼ÓÔØÍê³ÉµÄʱºòµ÷ÓõÄ, ¶øÊÇÔÚÒ³ÃæËùÓÐÔªËØ (°üÀ¨Í¼Æ¬µÈ) È«²¿¼ÓÔØÍê³É²Å»áµ÷ÓÃ. Ò²¾ÍÊÇ˵, Èç¹ûÄãµÄÒ³ÃæÉÏÓиö³ß´çºÜ ......

¼±£¬Çó½Ì´ó¼ÒÒ»¸öJavaScriptÎÊÌâ

ÎÒÏë×öµÄ¹¦ÄÜÊǵ¥»÷°´Å¥£¬È»ºó¾Í°Ñselect±êÇ©ÀïµÄoptionÈ«²¿Çå¿Õ¡£
ÒÔÏÂÊÇ´úÂ룺
JScript code:

<script language="javascript">
function remove(){
var nclass=document.getElemen ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ