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

javascript,js»ñµÃ¿Í»§¶Ë¼ÆËã»úIP»òÃû³Æ·½·¨

1¡¢rcbdyctl
view plaincopy to clipboardprint?
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html;   
charset=gb2312">  
<title>JS»ñÈ¡¿Í»§¶ËIP</title>  
</head>  
<body>  
<mce:script type="text/javascript" language="javascript"><!--  
function GetLocalIPAddress()  
{  
     var obj = null;  
     var rslt = "";  
     try
     {  
         obj = new ActiveXObject("rcbdyctl.Setting");  
         rslt = obj.GetIPAddress+":"+obj.CreatePassword;  
         obj = null;  
     }  
     catch(e)  
     {  
         //Òì³£·¢Éú  
     }  
      
     return rslt;  
}  
document.write("ÄãµÄIPÊÇ£º" + GetLocalIPAddress());  
// --></mce:script>  
</body>  
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
<title>JS»ñÈ¡¿Í»§¶ËIP</title>
</head>
<body>
<mce:script type="text/javascript" language="javascript"><!--
function GetLocalIPAddress()
{
     var obj = null;
     var rslt = "";
     try
     {
         obj = new ActiveXObject("rcbdyctl.Setting");
      


Ïà¹ØÎĵµ£º

ѧϰ¡¶JavaScript¸ß¼¶³ÌÐòÉè¼Æ¡·Ñ§Ï°±Ê¼Ç£¨¶þ£©

Ò»¡¢deleteÔËËã·ûɾ³ý¶ÔÒÔÇ°¶¨ÒåµÄ¶ÔÏóÊôÐÔ»ò·½·¨µÄÒýÓãº
    var o=new Object();
    o.name="hello";
    alert(o.name);    //Êä³ö“hello”
    delete o.name£»
    alert(o.name);   //Êä³ö& ......

JavaScriptÃæÏò¶ÔÏóÏê½â

ÄÚÖÃÀà
JavaScriptÊÇÒ»ÖÖ»ùÓÚ¶ÔÏóµÄ½âÊÍÐÔ±à³ÌÓïÑÔ£¬ËùÓеÄÔªËØ£¬ÎÒÃǶ¼¿ÉÒÔÀí½âΪ¶ÔÏó£¬Ã¿¸ö¶ÔÏóÒ²¿ÉÒÔÀí½âΪN¶àÊôÐԵļ¯ºÏ¡£ÔÚÌÖÂÛ×Ô¶¨ÒåÀà֮ǰ£¬ÎÒÃÇÏÈ¿´Ò»ÏÂÄÚÖõÄÀà¡£×÷Ϊ½âÊÍÐÔÓïÑÔ£¬JavaScriptÔÊÐíÎÒÃÇÔÚÈκÎʱºòΪ¶ÔÏóÌí¼ÓÊôÐÔ¡£ËùÒÔÎÒÃÇ¿ÉÒÔÏÈ¿´Ò»¶Î¼òµ¥µÄ´´½¨¶ÔÏóµÄ´úÂëƬ¶Î¡£ÕâÀïµÄ“new Object”Ò²¿ ......

ÓÃJavascript»ñÈ¡Ò³ÃæÔªËصÄλÖÃ

תÔØ×Ô£ºhttp://www.ruanyifeng.com/blog/2009/09/find_element_s_position_using_javascript.html
Áíһƪ£ºhttp://blog.csdn.net/ivan820819/archive/2009/09/03/4515122.aspx
ÖÆ
×÷
ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹ØÖª
ʶ¡£
Ò»¡¢ÍøÒ³µ ......

Javascriptµ÷ÓÃWebserviceµÄ¶àÖÖ·½·¨

ͨ¹ýxmlhttp+webservice(ԭʼ·½·¨)
Ô­ÎĵØÖ·:http://netboy.cnblogs.com/archive/2006/02/18/333260.html
 view plaincopy to clipboardprint?
using System;  
using System.Web;  
using System.Web.Services;  
using System.Web.Services.Protocols;  
  ......

Javascript DOMѧϰ±Ê¼Ç2


´´½¨ÎĵµÔªËØ
document.createElement(nodename)
²åÈëÔªËص½Îĵµ½ÚµãÊ÷
parent.appendChild(child)
´´½¨Îı¾½Úµã
document.createTextNode(text)
ÔÚÏÖÓÐÔªËØÇ°²åÈëÐÂÔªËØ
parentElement.insertBefore(newElement,targetElement)
ÔÚÏÖÓÐÔªËغó²åÈëÐÂÔªËØ£¨×ԱຯÊý£©
parentElement.insertAfter(newElement,targe ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ