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

ÓÃjavascriptʵÏÖ×Óҳˢи¸Ò³µÄ¿Ø¼þ

1 Add  the following code to .aspx
<script>  
  function fresh() {
         {
            window.opener.document.getElementById("ControlId").click();  //ControlId -- meaning parent control
        }
<script>
2.Add the following code to .cs,if you want to refresh master page control.
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "fresh(');", true);


Ïà¹ØÎĵµ£º

javascript¼ÓÔØxmlÎļþ

<mce:script language="javascript" type="text/javascript"><!--
//ÐèÒª¶ÁÈ¡µÄxmlÎļþ
var uRl = "jsReadXml.xml";
var xmlDoc;
//³õʼ»¯£¬¸øÉÏÊö¶¨Òå±äÁ¿¸³Öµ
// function showcurcity(){
if(window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM&q ......

ASP.NETǰ̨javascriptÓëc#ºǫ́´úÂëµ÷ÓÃ

netÖÐC#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃÎÊÌâ¡£
¡¡¡¡ÎÊ£º
¡¡¡¡1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
¡¡¡¡2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
¡¡¡¡3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
¡¡¡¡4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
¡¡¡¡ÎÊÌâ1´ð°¸ÈçÏ£º
¡¡¡¡javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
¡¡¡¡·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò ......

²Î¼ÓJavaScriptÃæÊÔ£¬±ØÐë¸ã¶®µÄÎÊÌâ

²Î¼ÓJavaScriptÃæÊÔ£¬±ØÐë¸ã¶®µÄÎÊÌâ£¨ÍÆ¼ö£©
Ò». JavaScriptÖеĶÔÏó.
JavaScriptÖеÄObjectÊÇÒ»×éÊý¾ÝµÄkey-valueµÄ¼¯ºÏ, ÓеãÀàËÆÓÚJavaÖеÄHashMap, ËùÓÐÕâЩÊý¾Ý¶¼ÊÇObjectÀïµÄproperty.
ͨ³£Çé¿öÏÂ, JavaScriptÖн¨Á¢Ò»¸ö¶ÔÏóÓÃ"new"¼ÓÉÏconstructor functionÀ´ÊµÏÖ.
Èçnew Date(), new Object()µÈ.
var bo ......

javascriptµÄÈÕÆÚÀý×Ó

<script language="JavaScript">
<!--
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = ......

JavaScriptÖ®±£ÁôСÊýµãºóÖ¸¶¨Î»Êý

ÔÚ¿ª·¢¹ý³ÌÖо­³£Óöµ½Òªµ÷ÕûСÊýµÄ¸ñʽ£¬Èç±£ÁôСÊýµãºóÁ½Î»µÈµÈ¡£·½·¨Ò²ÆÄΪ³£¼û£¬±¸ÍüÈçÏ¡£
 µÚÒ»ÖÖ£¬ÀûÓÃmath.round 
   var original=28.453
1) //round "original" to two decimals
var result=Math.round(original*100)/100;  //returns 28.45
2) // round "original" to 1 dec ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ