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

Javascriptº¯ÊýÖе÷ÓÃC#·½·¨

Ò»¡¢ºǫ́£¨.csÎļþ£©·½·¨£º
       public string GetString(string name)
        {
            return ("Hello " + name);
        }
        public string GetString()
        {
            return ("Hello");
        }
¶þ¡¢Ç°Ì¨ÎļþÄÚÈÝ£º
<html>
<head>
    <title></title>
</head>
<script language="javascript" type="text/javascript">
    function GetString() {
        var reval = '<%=GetString()%>';
        alert(reval);
    }
    function GetStringByPara() {
        var str = "EveryOne";
        var reval = '<%=GetString("' + str + '")%>';
        alert(reval);
    } 
</script>
<body>
<a href="javascript:GetString();">Î޲ε÷ÓÃ</a><br />
<a href="javascript:GetStringByPara();">µ÷ÓÃ</a>
</body>
</html>


Ïà¹ØÎĵµ£º

ÓÃJavascriptÁ¬½ÓAccessÊý¾Ý¿âµÄ·½·¨

±¾ÎĽéÉÜjavascriptÁ¬½ÓaccessÊý¾Ý¿âµÄ·½·¨¡£Õâ¶Î´úÂëÔÚ±¾µØ¿ÉÒÔÕý³£ÔËÐУ¬ÔÚÏßÔòÐèÒª×ã¹»µÄȨÏÞ¡£ÓÉÓÚ²ÉÓÃAccessÊý¾Ý¿â£¬ËùÒÔ²¢²»Ê¹Óñê×¼µÄSQLÓ﷨ʹÓÃʱ¡£ÐèҪעÒâ¡£
Õ⼸Ìì·ÑÁËͦ´óÁ¦ÆøÔÚÍøÉϲéÕÒjavascriptÁ¬½ÓaccessÊý¾Ý¿âµÄ·½·¨£¬¾­¹ýÕûÀí×ܽᣬÖÕÓÚд³öÒ»¶ÎÄܹ»ÓÐЧִÐеĴúÂë¡£
µ«ÊÇÕâ¶Î´úÂëÔÚ±¾µØ¿ÉÒÔÕý³£ÔËÐУ ......

javascript ÅжÏÎļþÊÇ·ñ´æÔÚ ÕûÀí

javascript ÅжÏÎļþÊÇ·ñ´æÔÚ
<title>³£ÓÃÏÂÔØ</title>
    <script type="text/javascript" >      
//ÅжϷþÎñÆ÷ÉϵÄÎļþ£¨ÍøÂçÎļþÊÇ·ñ´æÔÚ£©    
function getURL()  
     &nb ......

Javascript¿ÉÒƶ¯´°¿ÚµÄÉè¼Æ

<html>
 <head><title>js¿ÉÒƶ¯´°¿ÚµÄÉè¼Æ</title>
<script  language="javascript">
var x0=0,y0=0,x1=0,y1=0;//³õʼ»¯È«¾Ö±äÁ¿
var offx=6,offy=6;
var moveable=false;
var hover='orange';//color;
var index=10000;//z-index;
//¹Ø±Õ´°¿Ú
function closeWin(id)
{& ......

Àí½âJavascript±Õ°ü(closure)

Ò»¡¢Ê²Ã´ÊDZհü£¿
“¹Ù·½”µÄ½âÊÍÊÇ£ºËùν“±Õ°ü”£¬Ö¸µÄÊÇÒ»¸öÓµÓÐÐí¶à±äÁ¿ºÍ°ó¶¨ÁËÕâЩ±äÁ¿µÄ»·¾³µÄ±í´ïʽ£¨Í¨³£ÊÇÒ»¸öº¯Êý£©£¬Òò¶øÕâЩ±äÁ¿Ò²ÊǸñí´ïʽµÄÒ»²¿·Ö¡£
ÏàÐźÜÉÙÓÐÈËÄÜÖ±½Ó¿´¶®Õâ¾ä»°£¬ÒòΪËûÃèÊöµÄ̫ѧÊõ¡£ÎÒÏëÓÃÈçºÎÔÚJavascriptÖд´½¨Ò»¸ö±Õ°üÀ´¸æËßÄãʲôÊDZհü£¬ÒòΪÌø¹ý±Õ°üµÄ´´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ