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

JavaScript»ñµÃÉÏÒ»Ò³µØÖ·

ÔÚJavaScriptÖÐÀûÓÃdocument.referrer¿ÉÒÔ»ñµÃÌø×ªÇ°ÉÏÒ»Ò³µÄµØÖ·,ÆäʵÔÚÖîÈçAsp,PHPµÈÓïÑÔÖж¼¿ÉÒÔ»ñµÃÕâ¸ö²ÎÊý,Ö»²»¹ýд·¨²»Í¬,È»ºó¿ÉÒÔÅжÏÊÇÄÄÀïÀ´µÄÇëÇó´Ó¶ø×öһЩ´¦Àí.µ«ÊÇJSÖеÄdocument.referreÖ»ÄÜ»ñµÃ<a>±êÇ©´«¹ýÀ´µÄ²ÎÊý.¿´´úÂë
a.html
<html>
<head>
<title>²âÊÔ</title>
<mce:script type="text/javascript"><!--
function test(){
window.location.href = "b.html";
}

// --></mce:script>
</head>
<body>
<input type="button" onclick="test()" value="²âÊÔÌø×ª">
<a href="b.html" mce_href="b.html">µã»÷ÎÒÌø×ª</a>
</body>
</html>
b.html
<html>
<head>
<title>²âÊÔ</title>
<mce:script type="text/javascript" language="javascript"><!--
alert(document.referrer);

// --></mce:script>
</head>
<body>

</body>
</html>
Õâ¶Î´úÂë²»ÄÜÆÕͨµÄÔÚ±¾µØÖ´ÐÐ,ÕâÑù»áʲô¶¼»ñµÃ²»µ½µÄ,Äõ½TomcatÏÂ,¾Í¿ÉÒÔ¿´µ½´«¹ýÀ´µÄÖµÁË,ÓÐÐËȤÑо¿µÄ¿ÉÒÔÊÔÊÔ.ÕâÖÖ´¦ÀíÏÖÔÚMSÊDz»ÄÜαÔìµÄ,ÎÒGoogleÁËÒ»ÏÂ,»¹ÕæÃ»ÓÐÕÒµ½Î±ÔìµÄ·½·¨,µÈÓлú»áÔںúÃÑо¿Ò»ÏÂ.


Ïà¹ØÎĵµ£º

´«ÖDz¥¿ÍJavaѧϰ JavaScript¼ÓÇ¿

ÎÒ½ñÌìѧϰÁËÙ¡ÀÏʦ½²µÄJavaScript½âÎöDomÎĵµµÄ֪ʶ£º
Ò»¡¢        ½Úµã·ÖΪ3ÖÖÀàÐÍ£¬ÔªËؽڵ㣬ÊôÐԽڵ㣬Îı¾½Úµã
¶þ¡¢        ²éÕҽڵ㣺
l       js´úÂë²»ÄÜдÔÚbodyÔªËØµÄÇ°Ãæ£¬js ´úÂëдÔÚ <head> ½ ......

javascript½«×Ö·û´®ÀàÐÍת»»ÎªXML¶ÔÏó

try { //Internet Explorer
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.loadXML(data);
} catch(e) { //Other Browsers
parser=new DOMParser();
xmlDoc=parser.parsefromString(data,"text/xml");
} ......

Javascript Closures

Javascript Closures
Introduction
The Resolution of Property Names on Objects
Assignment of Values
Reading of Values
Identifier Resolution, Execution Contexts and Scope Chains
The Execution Context
Scope chains and [[scope]]
Identifier Resolution
Closures
Automatic Garbage Collecti ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ