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

JavaScriptÔÓ̸

1¡¢JS½âÊÍ˳Ðò
JavaScriptÊÇ°´HTMLÎĵµÁ÷˳ÐòÖ´Ðеģ¬·Ö<script>¿é˳ÐòÖ´ÐУ¬JSÊÇÏÈÔ¤±àÒëÔÙÖ´ÐУ¬È»ºóÔٱ߱àÒë±ßÖ´ÐеÄÓïÑÔ£¬ÀýÈ磺
alert(a);   //undefined
var a = 1;
alert(a);  //1
Ϊʲô»á³öÏÖÉÏÊö½á¹ûÄØ£¿
´ð°¸£ºa±äÁ¿ÔÚÔ¤±àÒëµÄʱºò£¬ÒѾ­´æÔÚÄÚ´æÖУ¬È»ºóJSÒýÇ濪ʼִÐÐJS´úÂ룬µ«ÊÇÓÉÓÚ±äÁ¿µÄ³õʼ»¯²Ù×÷ʱ·¢ÉúÔÚÖ´ÐÐÆڼ䣬Ҳ¾ÍÊÇ˵£¬Ö´Ðе½µÚÒ»¸öalert(a);ʱ£¬a»¹Î´³õʼ»¯£¨»¹Î´Ö´ÐÐa = 1Õâ¶Î´úÂ룩£¬Òò´ËÊä³öundefined£¬ºóÃæÄǸöÔòÊä³ö1.
ºóÃæ´ýÐø~~~


Ïà¹ØÎĵµ£º

javascriptЧÂʾ­Ñé̸(Ò»)

±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔ­À´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾­Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾­¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷Ô­Òò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......

javascriptÃæÏò¶ÔÏóѧϰ

¼ò½é

ÔÚjavascript
ÖÐÎÒÃÇ×îͨ³£µÄ×ö·¨ÊǶ¨ÒåÒ»¸öÒ»¸öµÄ·½·¨(function)
£¬È»ºóͨ¹ý¸ö¸öfunction
Ö®¼äµÄµ÷ÓÃÀ´ÊµÏÖij¸ö¹¦ÄÜ£¬Ò²¾ÍÊÇ¿ÉÒÔÕâÑù½²£¬function
ËƺõÊÇjs
ÖеÄÒ»¸ö×îС×éÖ¯µ¥Ôª,
ÎÒÃÇÒѾ­ÊìϤÁ˸÷ÖÖÃæÏò¶ÔÏó¶ÔÏóÓïÑÔ(java,c#..),
ÎÒÃÇÒѾ­Ï°¹ßÁËʹÓø÷¸÷ÀàÀ´·â×°¸÷¸ö²Ù×÷£¬Èúóͨ¹ý¸÷¸ö¶ÔÏóÖ®¼äµÄ½» ......

JavaScript »ñÈ¡¿Í»§¶Ë¼ÆËã»úÓ²¼þ¼°ÏµÍ³ÐÅÏ¢(תÔØ)

ͨ¹ýWMIÀ´ÊµÏÖ»ñÈ¡¿Í»§¶Ë¼ÆËã»úÓ²¼þ¼°ÏµÍ³ÐÅÏ¢:
1//ϵͳÐÅÏ¢»ñÈ¡
2function getSysInfo(){
3 var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
4 var service = locator.ConnectServer(".");
5 //CPUÐÅÏ¢
6 var cpu = new Enumerator (service.ExecQuery("SELECT * from Win32_Processor")).item(); ......

JavaScriptµ¯³öÒ³Ãæ

<script language="javascript" type="text/javascript">
fea = "width=400,height=300,top=100,left=300,resizable=0,scrollbars=0,dependent=yes";
fea_action="width=200,height=100,left=256,top=260,resizable=0,scrollbars=0,dependent=yes"
function f_gopage(page){
form2.page.value=page;
form2.pages ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ