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

ʹÓÃjavascript¹ýÂË×Ö·û´®Ç°ºóµÄ¿Õ¸ñ

//¹ýÂËÁ½¶ËµÄ¿Õ¸ñ
    function trim(str){
   return str.replace(/(^\s*)|(\s*$)/g, ""); 
    }
    //¹ýÂË×ó±ßµÄ¿Õ¸ñ 
    function ltrim(str){
   return str.replace(/(^\s*)/g,""); 
    } 
    //¹ýÂËÓұߵĿոñ
    function rtrim(str){
   return str.replace(/(\s*$)/g,"");
    }


Ïà¹ØÎĵµ£º

javascript StyleSheetÑùʽ²Ù×÷Àà

ÔçÉÏÔÚcsdnÉÏ¿´ÓÐÈËÎÊÒ³Ãæstyle sheetÔõôÐÞ¸ÄÀïÃæµÄrule,¾ÍдÁ˸öÀà,¸ÃÀà¶Ô¼æÈÝFFºÍIE×öÁË´¦Àí¡£
/**//*--------------------------------------------
    ÃèÊö : Ìí¼ÓеÄÑùʽrule
    ²ÎÊý : styleSheetsË÷Òý
    ´úÂë :&nb ......

³£ÓÃÕýÔò±í´ïʽ,³£ÓÃ±íµ¥ÑéÖ¤javascript´úÂë

function f_MobilCheck(as_SourceString)
{
 if(as_SourceString.match(/^13[0-9]{9}$/g)) return true;  //ÊÖ»úºÅΪ13¿ªÍ·µÄ11λÊý×Ö
 else if(as_SourceString.match(/^[0]{1}[0-9]{2,3}[2-8]{1}[0-9]{5,7}$/g)) return true;¡¡¡¡//СÁéͨΪ0¿ªÍ·µÄ3-4λµÄÇøºÅ£«²»ÒÔ1ºÍ9¿ªÍ·µÄ6£­8λÊý×Ö
 retur ......

javascriptÔÚffºÍieÁ½ÖÖä¯ÀÀÆ÷ϵÄÇø±ð(Ò»)

1.document.formName.item('itemname')µÄÎÊÌâ ˵Ã÷£ºIEÏ¿ÉÒÔʹÓÃdocument.formName.item('itemname')ºÍdocument.formName.elements('elementsName'); FFÏÂÖ»ÄÜʹÓÃdocuement.formName.elements('elementsName'); ½â¾ö·½·¨£ºÍ³Ò»Ê¹ÓÃdocuement.formName.elements('elementsName'); 2.¼¯ºÏÀà¶ÔÏóÎÊÌâ ˵Ã÷£ºIEÏ¿ÉÒÔʹÓÃ[]ºÍ ......

JavaScript WebÁ÷³Ì¶¨Ò幤¾ß

Submitted by gouki on 2008, December 4, 11:47 PM. Javascript
ÓÃjavascript+vmlÀ´×ö¹¤×÷Á÷£¬È·ÊµÊǵÚÒ»´Î¿´µ½£¬ËùÒÔÎÒÔÚ¿´µ½ÓÐÕâ¸öÐÂÎŵÄʱºò£¬¾Í¾õµÃÌØ±ðµÄ³Ô¾ª¡£µ±ÄêµÄTRS¾ÍÊÇÒòΪÓÐÒ»¸öactivex°æµÄ¹¤×÷Á÷¿Ø¼þµÄCMS£¬µ¼ÖÂËûµÄ¼Û¸ñ·Ç³£µÄ¸ß£¬½ñÌìÄܹ»¿´µ½ÓÐjavascript°æµÄ£¬¾ªÑÈÊÇÄÑÃâµÄ¡£¡£¡£
Ö»ÊDz¢·ÇËùÓеĻúÆ÷¶¼Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ