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

Javascript ѧϰ±Ê¼ÇÖ®ÒýÓÃ

ÒýÓÃÊÇÒ»¸öÖ¸Ïò¶ÔÏóʵ¼ÊλÖõÄÖ¸Õë¡£
Àý1£º
var obj = new Object();
var objRef = obj; //objÓëobjRefÖ¸Ïòͬһ¸ö¶ÔÏó,objRefÊÇÒ»¸öÒýÓÃ

×ÔÐ޸ģ¨self-modifying£©
Àý2£º
var items = new Array("one","two","three");
var itemsRef = items; //´´½¨Ò»¸öÒýÓÃ
items.push("four");
alert(items.length == itemsRef.length); //´ËʱÁ½Õß³¤¶ÈÒ»Ö£¬ÒòΪָÏòͬһ¸ö¶ÔÏó

Àý3£º
var items = new Array("one","two","three");
var itemsRef = items;
items = new Array("new"); //´ËʱitemsÓëitemsRefÖ¸Ïò²»Í¬¶ÔÏó

ÔÚÖ´ÐÐ×Ö·û´®Á¬½Ó²Ù×÷ʱ£¬×ÜÊÇ»á²úÉúÒ»¸öеÄ×Ö·û´®¶ÔÏ󣬶ø²»ÊÇÔÚÔ­×Ö·û´®ÉϽøÐиü¸Ä¡£
Àý4£º
var item = "test";
var itemRef = item;
item += "ing";
alert(item != itemRef); //´ËʱitemÓëitemRefÖ¸Ïò²»Í¬¶ÔÏó


Ïà¹ØÎĵµ£º

JavaScript¸ß¼¶³ÌÐòÉè¼ÆÑ§Ï°±Ê¼Ç4£º ´´½¨¶ÔÏó

1¡¢»ìºÏµÄ¹¹Ô캯Êý/Ô­ÐÍ·½·¨
Óù¹Ô캯Êý¶¨Òå¶ÔÏóµÄËùÓзǺ¯ÊýÊôÐÔ£¬ÓÃÔ­ÐÍ·½Ê½¶¨Òå¶ÔÏóµÄº¯ÊýÊôÐÔ(·½·¨)£¬½á¹ûËùÓк¯Êý¶¼Ö»´´½¨Ò»´Î£¬¶øÃ¿¸ö¶ÔÏó¶¼¾ßÓÐ×Ô¼ºµÄ¶ÔÏóÊôÐÔʵÀý¡£
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional. ......

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 ......

[¾­Ñé×ܽá]½üÆÚJavaScript±à³Ì×ܽá


JavaScript
ת×Ô£º http://www.disandu.com/?p=603
============================================================================
1 ´¦ÀíXSLT  µ÷Óôø²ÎÊýµÄXSLTÄ£°åµÄ·½·¨ Ïê¼û 23Ìõ
  <html>
    <body>
       ......

javaScriptÕýÔò±í´ïʽ

Ò» javascriptÕýÔò±í´ïʽµÄ»ù±¾ÖªÊ¶
1     javascript ÕýÔò¶ÔÏó´´½¨ ºÍÓ÷¨
    ÉùÃ÷javascript ÕýÔò±í´ïʽ
   
     var reCat = new RegExp("cat");
      ÄãÒ²¿ÉÒÔ
     var reCat = /cat ......

JavaScriptÈëÃÅѧϰÊé¼®µÄ½×¶ÎÑ¡Ôñ


¶ÔÓÚÐí¶àÏëѧϰ JavaScript µÄÅóÓÑÀ´Ëµ£¬ÎÞÒÉÈçºÎÑ¡ÔñÈëÃŵÄÊé¼®ÊÇËûÃÇ×îÍ·ÌÛµÄÎÊÌ⣬»òÐíÒ²ÊÇËûÃÇһֱη¾å£¬ÉõÖÁ·ÅÆúѧϰ JavaScript µÄÀíÓÉ¡£
ÔÚ JavaScript ·½Ã棬×Ô¼º²»ÊÇʲôר¼Ò£¬Ò²²»ÊÇʲô¸ßÊÖ£¬µ«×Ô¼ºÒ»Â·×ßÀ´£¬JavaScript ´ÓÃÔãµ½ÈëµÀ£¬¶ÔÓÚ JavaScript Êé¼®µÄÈÏʶ»òÐí»¹ÓÐЩ½è¼ø¼ÛÖµ¡£
ÈëÃÅÍÆ¼öÊ×Ñ¡Êé¼®£º¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ