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

¡¾×ª¡¿³£ÓõÄJavaScriptÑéÖ¤ÕýÔò±í´ïʽ

ÏÂÃ涼ÊÇÎÒÊÕ¼¯µÄһЩ±È½Ï³£ÓõÄÕýÔò±í´ïʽ£¬ÒòΪƽ³£¿ÉÄÜÔÚ±íµ¥ÑéÖ¤µÄʱºò£¬Óõ½µÄ±È½Ï¶à¡£ÌØ·¢³öÀ´£¬Èø÷λÅóÓѹ²Í¬Ê¹Ó᣺Ǻǡ£
Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [u4e00-u9fa5]
ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^x00-xff]
ÆÀ×¢£º¿ÉÒÔÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È£¨Ò»¸öË«×Ö½Ú×Ö·û³¤¶È¼Æ2£¬ASCII×Ö·û¼Æ1£©
Æ¥Åä¿Õ°×ÐеÄÕýÔò±í´ïʽ£ºns*r
ÆÀ×¢£º¿ÉÒÔÓÃÀ´É¾³ý¿Õ°×ÐÐ
Æ¥ÅäHTML±ê¼ÇµÄÕýÔò±í´ïʽ£º< (S*?)[^>]*>.*?|< .*? />
ÆÀ×¢£ºÍøÉÏÁ÷´«µÄ°æ±¾Ì«Ôã¸â£¬ÉÏÃæÕâ¸öÒ²½ö½öÄÜÆ¥Å䲿·Ö£¬¶ÔÓÚ¸´ÔÓµÄǶÌ×±ê¼ÇÒÀ¾ÉÎÞÄÜΪÁ¦
Æ¥ÅäÊ×β¿Õ°××Ö·ûµÄÕýÔò±í´ïʽ£º^s*|s*$
ÆÀ×¢£º¿ÉÒÔÓÃÀ´É¾³ýÐÐÊ×ÐÐβµÄ¿Õ°××Ö·û(°üÀ¨¿Õ¸ñ¡¢ÖƱí·û¡¢»»Ò³·ûµÈµÈ)£¬·Ç³£ÓÐÓõıí´ïʽ
Æ¥ÅäEmailµØÖ·µÄÕýÔò±í´ïʽ£ºw+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*
ÆÀ×¢£º±íµ¥Ñé֤ʱºÜʵÓÃ
Æ¥ÅäÍøÖ·URLµÄÕýÔò±í´ïʽ£º[a-zA-z]+://[^s]*
ÆÀ×¢£ºÍøÉÏÁ÷´«µÄ°æ±¾¹¦ÄܺÜÓÐÏÞ£¬ÉÏÃæÕâ¸ö»ù±¾¿ÉÒÔÂú×ãÐèÇó
Æ¥ÅäÕʺÅÊÇ·ñºÏ·¨(×Öĸ¿ªÍ·£¬ÔÊÐí5-16×Ö½Ú£¬ÔÊÐí×ÖĸÊý×ÖÏ»®Ïß)£º^[a-zA-Z][a-zA-Z0-9_]{4,15}$
ÆÀ×¢£º±íµ¥Ñé֤ʱºÜʵÓÃ
Æ¥Åä¹úÄڵ绰ºÅÂ룺d{3}-d{8}|d{4}-d{7}
ÆÀ×¢£ºÆ¥ÅäÐÎʽÈç 0511-4405222 »ò 021-87888822
Æ¥ÅäÌÚѶQQºÅ£º[1-9][0-9]{4,}
ÆÀ×¢£ºÌÚѶQQºÅ´Ó10000¿ªÊ¼
Æ¥ÅäÖйúÓÊÕþ±àÂ룺[1-9]d{5}(?!d)
ÆÀ×¢£ºÖйúÓÊÕþ±àÂëΪ6λÊý×Ö
Æ¥ÅäÉí·ÝÖ¤£ºd{15}|d{18}
ÆÀ×¢£ºÖйúµÄÉí·Ý֤Ϊ15λ»ò18λ
Æ¥ÅäipµØÖ·£ºd+.d+.d+.d+
ÆÀ×¢£ºÌáÈ¡ipµØַʱÓÐÓÃ
Æ¥ÅäÌض¨Êý×Ö£º
^[1-9]d*$¡¡ ¡¡ //Æ¥ÅäÕýÕûÊý
^-[1-9]d*$ ¡¡ //Æ¥Å为ÕûÊý
^-?[1-9]d*$¡¡¡¡ //Æ¥ÅäÕûÊý
^[1-9]d*|0$¡¡ //Æ¥Åä·Ç¸ºÕûÊý£¨ÕýÕûÊý + 0£©
^-[1-9]d*|0$¡¡¡¡ //Æ¥Åä·ÇÕýÕûÊý£¨¸ºÕûÊý + 0£©
^[1-9]d*.d*|0.d*[1-9]d*$¡¡¡¡ //Æ¥ÅäÕý¸¡µãÊý
^-([1-9]d*.d*|0.d*[1-9]d*)$¡¡ //Æ¥Å为¸¡µãÊý
^-?([1-9]d*.d*|0.d*[1-9]d*|0?.0+|0)$¡¡ //Æ¥Å両µãÊý
^[1-9]d*.d*|0.d*[1-9]d*|0?.0+|0$¡¡¡¡ //Æ¥Åä·Ç¸º¸¡µãÊý£¨Õý¸¡µãÊý + 0£©
^(-([1-9]d*.d*|0.d*[1-9]d*))|0?.0+|0$¡¡¡¡//Æ¥Åä·ÇÕý¸¡µãÊý£¨¸º¸¡µãÊý + 0£©
ÆÀ×¢£º´¦Àí´óÁ¿Êý¾ÝʱÓÐÓ㬾ßÌåÓ¦ÓÃʱעÒâÐÞÕý
Æ¥ÅäÌض¨×Ö·û´®£º
^[A-Za-z]+$¡¡¡¡//Æ¥ÅäÓÉ26¸öÓ¢ÎÄ×Öĸ×é³ÉµÄ×Ö·û´®
^[A-Z]+$¡¡¡¡//Æ¥ÅäÓÉ26¸öÓ¢ÎÄ×ÖĸµÄ´óд×é³ÉµÄ×Ö·û´®
^[a-z]+$¡¡¡¡//Æ¥ÅäÓÉ26¸öÓ¢ÎÄ×ÖĸµÄСд×é³ÉµÄ×Ö·û´®
^[A-Za-z0-9]


Ïà¹ØÎĵµ£º

ÓÃJavascriptʵÏÖ¾²Ì¬¶ÔÏó¡¢¾²Ì¬·½·¨ºÍ¾²Ì¬ÊôÐÔ

JavascriptÓïÑÔµÄÃæÏò¶ÔÏóÌØÕ÷ºÜÈõ£¬ÆäËûÃæÏò¶ÔÏóÓïÑÔÔÚ´´½¨ÀàʱֻҪʹÓùؼü×Östatic¼´¿ÉÖ¸¶¨ÀàΪ¾²Ì¬À࣬JavascriptûÓÐÌṩstaticÕâÑùµÄ¹Ø¼ü×Ö£¬ÒªÈÃJavascriptÒ²¾ßÓГ¾²Ì¬”ÌØÐÔÖ»Óп¿Ò»Ð©“Ææ¼¼ÒùÇÉ”ÁË¡£
´úÂëÖÐÁоÙÁËÁ½ÖÖ¾²Ì¬·½·¨/ÊôÐÔµÄʵÏÖ·½Ê½£¬Ò»ÖÖÊǾ²Ì¬ÀàµÄ¾²Ì¬·½·¨ºÍÊôÐÔ£¬ÁíÒ»ÖÖÊǷǾ ......

Javascript¶ÔÏó£¬prototypeÁ´

DocÁ´½Ó£º http://docs.google.com/Doc?docid=0AZUdXGtQa0xqZGRocmo3MzZfMjA2Y2ZqZ2szZ2g&hl=en
¹Ø¼ü´Ê£ºJavaScript£»¶ÔÏó£»prototype£»prototypeÁ´
ÎÒÃÇÀ´´ò¸ö±È·½°É£º
ËæןöÈ˵çÄÔÓ²¼þµÄ°×²Ë¼Û»¯£¬ºÜ¶àÓ²¼þÖÆÔìÉÌ¿ªÊ¼°ïÓû§×öÕû»úDIY¡£ÓÐʱºòÓû§¿ÉÄܻص½“×ܲ¿”È¥×°»ú£¬ÄÇÀﶫÎ÷ºÜÈ«¡£µ«Ò»°ãÕâЩ³§¼Ò ......

ÀûÓÃjavascriptÔÚSiebel HI»·¾³Ï½øÐмòµ¥µÄ²âÊÔ

SiebelÖ§³ÖÔÚä¯ÀÀÆ÷µÄµØÖ·À¸Ê¹ÓÃjavascript
ÀýÈç
javascript:alert(theApplication().GetProfielAttr("Employee Flag");
javascript:var sBo = theApplication().ActiveBusObject();sBc = sBo.GetBusComp("Contact");alert(sBc.GetFieldValue("Last Name")); ......

javascript »ñÈ¡¹ö¶¯Ìõ¸ß¶È+³£ÓÃjsÒ³Ãæ¿í¶ÈÓë¸ß¶È

/********************
 * È¡´°¿Ú¹ö¶¯Ìõ¸ß¶È 
 ******************/
function getScrollTop()
{
    var scrollTop=0;
    if(document.documentElement&&document.documentElement.scrollTop)
    {
        ......

¡¾×ª¡¿Javascriptº¯ÊýÖд«µÝ´ø¿Õ¸ñµÄ²ÎÊý

Javascriptº¯ÊýÖд«µÝ´ø¿Õ¸ñµÄ²ÎÊý
       ͨ³£ÔÚÒ³ÃæÖÐÒªÈÃijЩÄÚÈݵã»÷ºó²úÉúµã»÷ʼþ£¨·ÇÒ³ÃæÌøת£©¶¼»áʹÓÃonclick£¬µ«ÊÇÕâÑù²»ÊÊÓÚÐèÒª´«µÝ²ÎÊýµÄÇé¿ö£¬ÓÚÊÇд³ÉÖ±½Óµ÷ÓÃJavascriptº¯ÊýµÄ·½Ê½£º<a href=javascript:somefunction(args)>content</a>¡£×¢Ò⣬ÕâôдÊÇÓÐÎÊÌâµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ