΢ÈíÐû²¼AJAX CDN
ÔÎĵØÖ·¡¿Announcing the Microsoft AJAX CDN
¡¾ÔÎÄ·¢±íÈÕÆÚ¡¿ Tuesday, September 15, 2009 11:46 PM
½ñÌìÔçЩʱºò£¬ASP.NET¿ª·¢ÍŶÓÍƳöÁËÒ»¸öеÄ΢ÈíAjax CDN£¨Content Delivery Network£¬ÄÚÈÝ·Ö·¢ÍøÂ磩·þÎñ£¬¸Ã·þÎñÌṩÁ˶ÔAJAX¿â£¨°üÀ¨jQuery ºÍ ASP.NET AJAX£©µÄ»º´æÖ§³Ö¡£¸Ã·þÎñÊÇÃâ·ÑµÄ£¬²»ÐèÈκÎ×¢²á£¬¿ÉÓÃÓÚÉÌÒµÐÔ»ò·ÇÉÌÒµÐÔÓÃ;¡£
CDN¶¼Ìṩʲô£¿
ÄÚÈÝ·Ö·¢ÍøÂ磨CDNs£©ÊÇÓÉÕ½ÂÔÐÔµØÖ÷ÅÓÚÊÀ½ç¸÷µØ¹Ø¼üInternetÍøÂçµãµÄ“±ßÔµ»º´æ£¨edge cache£©”·þÎñÆ÷×é³ÉµÄ¡£ÕâЩ“±ßÔµ»º´æ£¨edge cache£©”·þÎñÆ÷¿ÉÓÃÓÚ»º´æºÍ·Ö·¢¸÷ÖÖÀàÐ͵ÄÄÚÈÝ£¬°üÀ¨Í¼Æ¬£¬ÊÓƵ£¬CSSºÍJavaScriptÎļþ¡£
ʹÓÃCDN¿ÉÒÔÏÔÖøÌá¸ßÒ»¸öÍøÕ¾µÄÖÕ¶ËÓû§ÐÔÄÜ£¬ÒòΪËüÔÊÐíä¯ÀÀÆ÷¸ü¿ìµØ»ñÈ¡ºÍÏÂÔØÄÚÈÝ¡£ÀýÈ磬¶ÔÒ»¸öͼƬÇëÇó£¬ä¯ÀÀÆ÷²»ÔÙÐèÒª¿çÔ½Internetµ½ÄãµÄweb·þÎñÆ÷ÏÂÔØ£¬Ò»¸öCDN¿ÉÒÔ´ÓÁÚ½üµÄ“±ßÔµ»º´æ£¨edge cache£©”·þÎñÆ÷Ö±½ÓÌṩ·þÎñÂú×ã¸ÃÇëÇ󣬶ø¸Ã±ßÔµ»º´æ·þÎñÆ÷¿ÉÄÜÓëÄãµÄ¿Í»§Ö»ÓÐÒ»¸öÍøÂçµ¥Ìø£¨single network hop£©Ö®Ô¶£¨Ê¹Ö®·µ»Ø·Ç³£Ö®¿ì£¬Ò²Ê¹µÃÄãµÄÍøÒ³×°Ôظü¿ì£©¡£
΢ÈíAJAX CDN¶¼Ìṩʲô£¿
΢ÈíAJAX CDN¼«´óµØ·½±ãÁ˽«jQueryºÍASP.NET AJAX½Å±¾¿â¼Óµ½ÄãµÄÍøÕ¾ÉÏ£¬¶øÇÒ×Ô¶¯µØÓÉÎÒÃÇÔÚÊÀ½ç¸÷µØµÄ³Éǧ¸öµØÀí¶¨Î»£¨geo-located£©µÄ±ßÔµ»º´æ·þÎñÆ÷À´ÌṩÕâЩ½Å±¾¡£
ÀýÈ磬Èç¹ûÄãÏëҪʹÓÃ΢ÈíAJAX CDNµÄjQuery£¬ÄãÖ»ÒªÔÚÍøÒ³ÖмÓÒ»¸öÓÃÁËÏÂÃæURLµÄ±ê×¼µÄ½Å±¾±êʶ£º
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
ÔÚä¯ÀÀÆ÷ÇëÇó¸Ã½Å±¾Îļþʱ£¬Ëü¾Í»á×Ô¶¯µØÓÉ×î¿¿½üÖÕ¶ËÓû§µÄCDNµÄ“±ßÔµ»º´æ£¨edge cache£©”·þÎñÆ÷Ìṩ¡£ÕâÒâζ×Å£º
ÇëÇó´¦Àí±ÈÖ®·ÃÎÊÄãµÄweb·þÎñÆ÷Òª¿ìºÜ¶à£¨Ê¹µÃÖÕ¶ËÓû§µÄÍøÒ³×°ÔØ¿ìºÜ¶à£©
Äã²»±ØÖ§¸¶¸ÃÎļþµÄ´ø¿í»¨·Ñ£¬ÒòΪ¸ÃÎļþÀ´×ÔÓÉÎÒÃÇÖ§¸¶´ø¿íµÄ·þÎñÆ÷£¨¸øÄãÊ¡ÁËÇ®£©
½Å±¾¿ÉÒÔÇáËɵؿçÕ¾»º´æ£¬ÕâÒâζ×Å£¬Èç¹ûÓû§¸Õ·ÃÎÊÁËÒ»¸öÇëÇó¹ý¸ÃÎļþµÄÍøÕ¾£¬ÄÇô¸ÃÎļþ¾Í²»ÔÙÐèÒªÏÂÔØÁË£¨ÒòΪ¸ÃÎļþÒѾ´æÔÚÓÚä¯ÀÀÆ÷µÄ»º´æÖÐÁË£©
Äã¿ÉÒÔÔÚwww.asp.net/ajax/cdnÕâÀïµÃµ½ÎÒÃÇÒѾÔØÈëÎÒÃǵÄCDN»º´æµÄJavaScript¿â£¨ÒÔ¼°Ïà¹ØµÄURLs£©µÄÍêÕûÁÐ±í¡£
ÔÚ·¢²¼ÐµÄASP.NET AJAX°æ±¾Ê±£¬ÎÒÃÇ»á¸üÐÂCDNÖеĿ⣬»á¼ÌÐø¸üÐÂËüÒÔ°üÀ¨ËæASP.NETºÍVisual Studio·¢²¼µÄËùÓÐ Jav
Ïà¹ØÎĵµ£º
<style type="text/css">
<!--
.STYLE1 {
font-size: 24px;
font-weight: bold;
}
.STYLE2 {font-size: 36px}
-->
.mouseOut {
color: #000000;
}
.mouseOver {
&nb ......
ÕªÒª
±¾ÎĽ«Ê×ÏȽéÉÜÒ»ÏÂÎÄÕµÄд×÷±³¾°ºÍÓõ½µÄÏà¹Ø¼¼Êõ¡£È»ºó½«·Ö±ðʹÓÃÆÓËصÄAjax¼¼ÊõºÍASP.NET AJAX¿ò¼Ü·Ö±ðʵÏÖ¾µäµÄ“Hello£¡XX”£¬Í¨¹ýÁ½¸öСÀý×Ó£¬Ê¹ÅóÓÑÃǶÔÕâ¸ö¿ò¼ÜµÄÌصãºÍ¿ò¼ÜµÄʹÓ÷½·¨ÓÐÒ»¸ö³õ²½µÄÈÏʶ¡£
Ç°ÑÔ
ÎÒÏ룬Èç¹û½ñÌìÄ ......
+++++++++++++++++++++++Ajax
~~~~~~~~~~~~~~~~~~~~~~~~~~
======= Ajax ¼¼Êõ ========
Ò»¡¢µÚÒ»¿Î ===¡· AJAX¸ÅÊöÓëIntelliJ°²×°
a.Ajax¶Á·¨Æäʵ²»ÊÇÎÒÃǶÁµÄ'°¢¼Ù¿Í˹'£¬×¢Òâרҵ»¯¡£
b.ÍõÐË¿ýÀÏʦÏȽ²Êµ¼ùÔÙ½²ÀíÂÛ¡£
c.¿ª·¢¹¤¾ß²»ÔÙÊÇeclipseÁË£¬ÒòΪajaxÖ÷Ҫдjavascript
d ......
±¾ÊµÀýÖ»ÀûÓõ½JQueryÀà¿â±¾ÉíµÄº¯ÊýºÍ¹¦ÄÜ£¬²»ÐèÒªµÚÈý·½²å¼þµÄÖ§³Ö¡£ÁíÍ⣬ËùÓÐ±íµ¥ÐÅÏ¢¶¼ÊÇÀûÓÃPHPMailerÀà¿âÓʼþµÄÐÎʽ·¢Ë͸ø¹ÜÀíÔ±¡£Èç¹ûÄã¶ÔJQueryµÄ»ù±¾Óï·¨»¹²»ÊǺÜÊìϤ£¬ÇëËÑË÷±¾Õ¾µÄ½Ì³Ì×ÊÔ´¡£Èç¹ûÄã¶ÔPHPMailerÓ÷¨²»ÊìϤ£¬Çë²é¿´±¾Õ¾µÄÁíһƪÎÄÕ¡¶Ê¹ÓÃPHPMailerÀà¿â·¢Ë͵ç×ÓÓʼþ¡·¡£
µÚÒ»²½£¬´´½¨Ò»¸ö±íµ¥HTM ......
tree.js
function getRank(rankNum)
{
var rankName="";
switch(rankNum)
{
case 1:
{
rankName="(ÆÕͨ»áÔ±)";
break;
}
case 2:
{
&n ......