vbscriptºÍjavascript»¥Ïàµ÷Ó÷½·¨
¹Ø¼ü×Ö vbscript,javascript,µ÷ÓÃ
vbscriptºÍjavascript»¥Ïàµ÷Ó÷½·¨
¡¡¡¡ASP¾ß±¸¹ÜÀí²»Í¬ÓïÑԽű¾³ÌÐòµÄÄÜÁ¦£¬Äܹ»×Ô¶¯µ÷ÓúÏÊʵĽű¾ÒýÇæÒÔ½âÊͽű¾´úÂëºÍÖ´ÐÐÄÚÖú¯Êý¡£ASP¿ª·¢»·¾³ÌṩÁËÁ½Öֽű¾ÒýÇ棬¼´VBScript£¨È±Ê¡£©ºÍJScript¡£²»¹ý£¬¿ª·¢Õß²¢Ã»Óб»ÏÞÖÆÓÚÖ»ÄÜʹÓÃÕâÁ½ÖÖÓïÑÔ£¬Ö»ÒªÄܹ»ÌṩºÏÊʵÄActiveX½Å±¾ÒýÇæ¾ÍÄÜʹÓÃÈκνű¾ÓïÑÔ¡£
¡¡¡¡½Å±¾ÓïÑÔµÄÑ¡ÔñÍùÍù»ùÓÚÐí¶à²»Í¬ÔÒò£ºËü¿ÉÄÜÊÇ¿ª·¢Õß×îΪÊìϤµÄÓïÑÔ£¬¿ÉÄÜÊǶԸø¶¨¹¤³ÌÀ´ËµÄܹ»Ìṩ×î¶àÌØÉ«Ö§³ÖµÄ£¬Ò²ÓпÉÄÜÊÇ×î¾ßЧÂʵġ£²»Í¬µÄ»·¾³ºÍÒªÇóʹµÃÎÒÃÇÔÚÑ¡Ôñ½Å±¾ÓïÑÔʱעÖز»Í¬µÄÒòËØ£¬Í¬Ê±Ò²Ê¹µÃÎÒÃÇÔÚijЩʱºòÃæÁÙÑ¡¶¨µÄ½Å±¾ÓïÑÔ²»ÄÜÖ±½ÓÌṩÆäËüÓïÑÔ¹ÌÓеĺ¯ÊýÕâÒ»ÎÊÌ⣬»òij¸ö½Å±¾ÒѾд³Éµ«ÓõÄÈ´ÊÇÁíÍâÒ»Öֽű¾ÓïÑÔ¡£
¡¡¡¡´ËʱӦ¸ÃÔõô°ì£¿ÊÇ·ñÐèÒªÓõ±Ç°ËùÓõĽű¾ÓïÑÔÖØдÕâЩ½Å±¾£¿»òÕß˵£¬ÊÇ·ñÓпÉÄÜÔÚÒ»Öֽű¾ÓïÑÔÖе÷ÓÃÆäËü½Å±¾ÓïÑÔµÄÄÚÖú¯Êý£¿±¾ÎÄҪ˵Ã÷µÄ¾ÍÊÇÔÚASPÓ¦ÓÃÖÐÈçºÎÈÃVBScript½Å±¾ºÍJScript½Å±¾½»»¥ÒÔ×î´óÏ޶ȵػñµÃÁ½Öֽű¾ÓïÑÔµÄÌØÉ«Ö§³Ö¡£
¡¡¡¡Ò»¡¢VBScriptºÍJScriptµÄÄÚÖú¯Êý
¡¡¡¡ÔÚVBScriptºÍJScriptÖУ¬ÓдóÁ¿µÄÄÚÖú¯Êý¹¦ÄÜÊÇÏàͬ»òÀàËƵġ£È»¶ø£¬ÔÚÒ»Öֽű¾ÓïÑÔÖÐÄÚÖõĺ¯Êý²¢·Ç×ÜÊÇÔÚÁíÍâÒ»Öֽű¾ÓïÑÔÖÐÒ²ÓжÔÓ¦µÄº¯Êý¡£ÀýÈ磬VBScriptÌṩÁËÐí¶àÓÃÓÚ²Ù×÷×Ö·û´®ºÍ¸ñʽ»¯Êý¾ÝµÄº¯Êý£¬ÕâЩº¯ÊýÔÚJScriptÖв¢²»´æÔÚ¡£ÕâЩº¯Êý°üÀ¨StrReverse()¡¢Filter()ÒÔ¼°FormatCurrency()µÈ¡£ÔÚÁíÒ»·½Ã棬JScriptËùÌṩµÄÓÃÓÚ¹ÜÀíÊý×é¡¢×Ö·û´®±àÂëµÈµÄº¯ÊýÔÚVBScriptÖÐҲûÓж¨Ò壬Èçjoin()¡¢reverse()¡¢pow()¡¢Î»²Ù×÷¡¢escape()ºÍunescape()µÈ¡£
¡¡¡¡ÄÇô£¬Èç¹ûÔÚJScript³ÌÐòÖÐÐèÒªÒ»¸öVBscriptº¯Êý¸ÃÔõô°ìÄØ?
¡¡¡¡¶þ¡¢ÒìÖֽű¾µÄ»¥Ïàµ÷ÓÃ
¡¡¡¡Èç¹ûÐèÒªÔÚJScript½Å±¾Öе÷ÓÃÒ»¸öVBScriptÖÐÄÚÖõĺ¯Êý£¬ÔòÓ¦¸Ãдһ¸öVBScriptÓû§¶¨Ò庯Êý£¨ÔÚÕâÀïµ÷ÓÃVBScriptÄÚÖú¯Êý£©£¬È»ºóÔÚJScript½Å±¾ÖÐÏóµ÷Óù«ÓÃJScriptº¯ÊýÒ»Ñùµ÷ÓÃÕâ¸öÓû§¶¨Ò庯Êý¡£
¡¡¡¡ÀýÈ磬Èç¹ûÒªµ÷ÓõÄVBSCriptÄÚÖú¯ÊýÊÇFormatCurrency()£¬Ôò¿ÉÒÔÉùÃ÷ÈçÏÂ×Ô¶¨Ò庯Êý£º
¡¡¡¡<SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER">
¡¡¡¡Function FormatValue(Value)
¡¡¡¡¡¡¡¡FormatValue = FormatCurrency(Value)
¡¡¡¡End&nbs
Ïà¹ØÎĵµ£º
1.Ajax Rain
¡¡¡¡AjaxRainÓкܶàÍêÃÀÕûºÏAJAX, CSS, DHTML »ò JavascriptµÄʵÀý£¬ÓÐһЩDemoµÄÈ·ÖµµÃÄãÈ¥¿´Ò»¿´£¬¼´Ê¹Äã²»ÊÇÍøÒ³Éè¼Æ(¿ª·¢)ʦ¡£
Ajax/JavascriptʵÀý:
EXT JS Date Picker
jQuery Feed Menu
jGrowl
FastFind Menu – Jquery
Spiffy Accordion
2.Ajax Daddy ......
JavaScriptµÄÕýÔò±í´ïʽ֧³Ö²¼¶û²Ù×÷£¬³ýÁË×÷Ϊ Ñ¡ÔñµÄ“²¼¶û»ò”²Ù×÷Ö®Í⣬ÕýÔò±í´ïʽ»¹Ö§³Ö·Ö×éºÍÒýÓÃ
¡£ÆäʵѡÔñ¡¢·Ö×éºÍÒýÓõÄ×÷Ó÷ֱðΪ£ºÖ¸¶¨Ñ¡ÔñÏî¡¢¶Ô×Ó±í´ïʽ·Ö×éºÍÒýÓà ǰһ×Ó±í´ïʽµÄÌØÊâ×Ö·û¡£
ÕýÔò±í´ïʽµÄÑ¡Ôñ£º
ËùνѡÔñ¼´ÔÚ¶à¸öÌõ¼þÀïÃæÑ¡ÔñÒ»¸ö£¬±ÈÈç˵ÂôË®¹ûµÄ´óү˵ËÍÄã¸öË®¹û£¬Äã¿ÉÒÔÑ¡Ô ......
javascript²Ù×÷Cookies·½·¨¼¯½õ
function setCookie(name,value)
{
var Days = 1; //´Ë cookie ½«±»±£´æ 1 Ìì
var exp = new Date(); //new Date("December 31, 9998");
exp.setTime(exp.getTime() + Days*24*60*60*1000);
document.cookie = name + ......