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Ö¸Ïò²»Í¬¶ÔÏó
Ïà¹ØÎĵµ£º
1¡¢»ìºÏµÄ¹¹Ô캯Êý/ÔÐÍ·½·¨
Óù¹Ô캯Êý¶¨Òå¶ÔÏóµÄËùÓзǺ¯ÊýÊôÐÔ£¬ÓÃÔÐÍ·½Ê½¶¨Òå¶ÔÏóµÄº¯ÊýÊôÐÔ(·½·¨)£¬½á¹ûËùÓк¯Êý¶¼Ö»´´½¨Ò»´Î£¬¶øÃ¿¸ö¶ÔÏó¶¼¾ßÓÐ×Ô¼ºµÄ¶ÔÏóÊôÐÔʵÀý¡£
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional. ......
<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
ת×Ô£º http://www.disandu.com/?p=603
============================================================================
1 ´¦ÀíXSLT µ÷Óôø²ÎÊýµÄXSLTÄ£°åµÄ·½·¨ Ïê¼û 23Ìõ
<html>
<body>
  ......
Ò» javascriptÕýÔò±í´ïʽµÄ»ù±¾ÖªÊ¶
1 javascript ÕýÔò¶ÔÏó´´½¨ ºÍÓ÷¨
ÉùÃ÷javascript ÕýÔò±í´ïʽ
var reCat = new RegExp("cat");
ÄãÒ²¿ÉÒÔ
var reCat = /cat ......
¶ÔÓÚÐí¶àÏëѧϰ JavaScript µÄÅóÓÑÀ´Ëµ£¬ÎÞÒÉÈçºÎÑ¡ÔñÈëÃŵÄÊé¼®ÊÇËûÃÇ×îÍ·ÌÛµÄÎÊÌ⣬»òÐíÒ²ÊÇËûÃÇһֱη¾å£¬ÉõÖÁ·ÅÆúѧϰ JavaScript µÄÀíÓÉ¡£
ÔÚ JavaScript ·½Ã棬×Ô¼º²»ÊÇʲôר¼Ò£¬Ò²²»ÊÇʲô¸ßÊÖ£¬µ«×Ô¼ºÒ»Â·×ßÀ´£¬JavaScript ´ÓÃÔãµ½ÈëµÀ£¬¶ÔÓÚ JavaScript Êé¼®µÄÈÏʶ»òÐí»¹ÓÐЩ½è¼ø¼ÛÖµ¡£
ÈëÃÅÍÆ¼öÊ×Ñ¡Êé¼®£º¡ ......