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

VS2005ÈçºÎµ÷ÊÔaspxÖÐJavaScript½Å±¾

Ê×ÏÈÉèÖÃIE,   ÒÀ´ÎÑ¡Ôñ ¹¤¾ß-> Internet   Ñ¡Ïî->   ¸ß¼¶, ÕÒµ½ ä¯ÀÀ ϵÄÁ½¸ö½ûÓýű¾µ÷ÊÔ¸´Ñ¡¿ò, ½«ÆäÈ¡ÏûÑ¡Ôñ(IEĬÈϽ«ÕâÁ½ÏîÑ¡ÖÐ, ²»ÄܽøÐнű¾µ÷ÊÔ), 
1. µ÷ÊÔJS½Å±¾Îļþ(*.jsÎļþ)
Ö±½ÓÔÚJSÎļþÖÐF9ÉèÖöϵã, F5ÔËÐе÷ÊÔ¼´¿É.
2. µ÷ÊÔÒ³ÃæÎļþÖнű¾(*.aspxÖÐJS½Å±¾)
 VS 2005ĬÈϲ»ÄÜÔÚ*.aspxÖÐÉèÖöϵã, ¸üºÎ¿ö½øÐÐJS¶Ïµã¸ú×Ùµ÷ÊÔ. µ÷ÊÔ½â¾ö°ì·¨:
a.   ÔÚVS 2005ÖаÑÒªµ÷ÊÔµÄÒ³Ãæ"ÉèΪÆðʼҳ" , ÔÙ°´Ctrl+F5ÔËÐÐ.
b. ÔÚ´ò¿ªµÄä¯ÀÀÆ÷ÖÐ, Ñ¡Ôñ:   ²é¿´-> ½Å±¾µ÷ÊÔ³ÌÐò, Ñ¡ ´ò¿ª Ïî
c. Ñ¡ÔñOpenºó, »áµ¯³öÈçÏÂʵʱµ÷ÊÔÆ÷´°¿Ú
Ñ¡Ôñ "ÐÂʵÀý Visual Studio 2005",   µã(Y)°´Å¥, »á×Ô¶¯µ¯³öÒ»¸öVSµ÷ÊÔÆ÷, ²¢ÇÒ´ò¿ª¸Õ²ÅµÄ*.aspxÎļþ,
 ok, ÔÚÕâ¸ö×Ô¶¯´ò¿ª*.aspxµÄVS ´°¿ÚÖоͿÉÒÔ[ÉèÖöϵã],   ½øÐе÷ÊÔÁË.
3.   ÓÐʱºò±ÈÈç»·¾³¹ÊÕÏ, ʼÖÕ²»Äܵ÷ÊÔ; ÔÚÐèÒªµ÷ÊÔµÄJS½Å±¾´¦¼Ó: debugger;   ÔòÒ»¶¨¿ÉÒÔµ÷ÊÔ.


Ïà¹ØÎĵµ£º

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

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

[JavaScript] JavaScriptÖг£¼ûÒÉÎÊÕûÀí

JavaScriptÖеÄ"=="ºÍ"===" (ת)
Ê×ÏÈ£¬== equality µÈͬ£¬=== identity ºãµÈ£¨ÑϸñÏàµÈ£©¡£
==£¬ Á½±ßÖµÀàÐͲ»Í¬µÄʱºò£¬ÒªÏȽøÐÐÀàÐÍת»»£¬ÔٱȽϡ£
===£¬²»×öÀàÐÍת»»£¬ÀàÐͲ»Í¬µÄÒ»¶¨²»µÈ¡£
ÏÂÃæ·Ö±ð˵Ã÷£º
ÏÈ˵ ===£¬Õâ¸ö±È½Ï¼òµ¥¡£ÏÂÃæµÄ¹æÔòÓÃÀ´ÅжÏÁ½¸öÖµÊÇ·ñ===ÏàµÈ£º
1¡¢Èç¹ûÀàÐͲ»Í¬£¬¾Í[²»ÏàµÈ]
2 ......

JavaScript×ÖÄ»¹ö¶¯Ð§¹û

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ÎÞ±êÌâÒ³</title>

</head>
<body>
<form id ......

[JavaScript] ¡¶¾«Í¨JavaScript¡·Ñ§Ï°£¨ËÄ£©~ÃæÏò¶ÔÏó

     
     prototype¾«²Ê×ÊÁÏ£º
     "javascriptÖ®prototype" http://www.cnblogs.com/zouhaijian/archive/2009/03/29/1424592.html(ºÜ¼òÔ¼µ«ÇåÎúµÄ½²ÊöÁËprototypeµÄÓÃ;)
     "JavaScript¶ÔÏóÄ£ÐÍ-Ö´ÐÐÄ£ÐÍ" http://w ......

javascript µÄtry catch


Try...Catch Óï¾ä
try...catch ¿ÉÒÔ²âÊÔ´úÂëÖеĴíÎó¡£try ²¿·Ö°üº¬ÐèÒªÔËÐеĴúÂ룬¶ø catch ²¿·Ö°üº¬´íÎó·¢ÉúʱÔËÐеĴúÂë¡£
Óï·¨£º
try
{
//ÔÚ´ËÔËÐдúÂë
}
catch(err)
{
//ÔÚ´Ë´¦Àí´íÎó
}
×¢Ò⣺
try...catch ʹÓÃСд×Öĸ¡£´óд×Öĸ»á³ö´í¡£
ʵÀý 1
ÏÂÃæµÄÀý×ÓÔ­±¾ÓÃÔÚÓû§µã»÷°´Å¥Ê±ÏÔʾ " ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ