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

³£ÓÃÕýÔò±í´ïʽ,³£ÓÃ±íµ¥ÑéÖ¤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λÊý×Ö
 return false;
}
 
//--------ÇëÐÂÔöº¯Êýʱ¼Ó×¢ÊÍ£¬¾¡Á¿½«Í¬ÀàµÄº¯Êý·ÅÔÚÒ»Æð£¬±ãÓÚ²éÕÒ¡£------Label_NameÔÊÐíΪ¿Õ£¬ÔÚÌáʾÓëÊäÈë¿ò·ÖÀëʱʹÓá£--------
 
//-------------------------------------------ɾ³ý×Ö·û´®×ó¿Õ¸ñ£¨°üÀ¨È«½Ç¿Õ¸ñ£©----------------
function f_PubStrLTrim(as_SourceString)
{
 return as_SourceString.replace(/^[\s¡¡]*/,"");
}
//-------------------------------------------ɾ³ý×Ö·û´®ÓÒ¿Õ¸ñ£¨°üÀ¨È«½Ç¿Õ¸ñ£©-----------------
function f_PubStrRTrim(as_SourceString)
{
 return as_SourceString.replace(/[\s¡¡]*$/,"");
}
//-------------------------------------------ɾ³ý×Ö·û´®×óÓÒ¿Õ¸ñ£¨°üÀ¨È«½Ç¿Õ¸ñ£©----------------
function f_PubStrTrim(as_SourceString)
{
 return f_PubStrRTrim( f_PubStrLTrim(as_SourceString)); 
}
//-------------------------------------------ɾ³ý×Ö·û´®µÄÈ«²¿¿Õ¸ñ£¨°üÀ¨È«½Ç¿Õ¸ñ£©-----------------
function f_PubStrTrimAll(as_SourceString)
{
 return as_SourceString.replace(/[\s¡¡]*/g,"");
 
}
//---------------------------------------------ÑéÖ¤ÊÇ·ñºÏ·¨µÄµç×ÓÓÊÏ䵨ַ----ºÏ·¨£ºtrue---²»ºÏ·¨£ºfalse---------
function f_EmailCheck(as_SourceString)
{
 return as_SourceString.match(/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/g);
}
//----------------------------------------------ÑéÖ¤ÊÇ·ñ²»º¬ÓзǷ¨µÄ×Ö·û--²»º¬ÓУ¬¼´ºÏ·¨£ºtrue---²»ºÏ·¨£ºfalse-------------
function f_StringCheck(as_SourceString)
{
 //·Ç·¨×Ö·û--£¨Ë«¼õºÅ£©/*£¨Ð±¸ÜÐǺţ©'£¨µ¥ÒýºÅ£©;£¨·ÖºÅ£©"£¨Ë«ÒýºÅ£©%£¨°Ù·ÖºÅ£©<£¨×ó¼âÀ¨ºÅ£©>£¨ÓÒ¼âÀ¨ºÅ£©
 if(as_SourceString.match(/\/\*|-{2}|[';"%<>]+/)) return false;
 else return true;
}
//------------------------------


Ïà¹ØÎĵµ£º

javascriptʵÏÖµ¯³ö´øÍ¸Ã÷Ч¹ûµÄ¿ÉÍ϶¯Í¼²ã

  javascriptʵÏÖµ¯³ö´øÍ¸Ã÷Ч¹ûµÄ¿ÉÍ϶¯Í¼²ã
      ×î¾­ÒòΪÐèÒªÒ»¸öµ¯³öͼ²ãЧ¹û£¬µ¯³öͼ²ãµ¹ÊÇÈÝÒ×ʵÏÖ£¬µ«¾ßÓÐÍ϶¯Ð§¹ûÈ´²»ÖªÔõôȥʵÏÖ£¬ÔÚÍøÉÏ×îÖÕÕÒµ½ÁËÒ»¸öÐèÒªµÄЧ¹û£¬´úÂëÒ²²»¶à£¬Ò»¿´´úÂëµÄ¾«Á¶£¬ÖªµÀÔ­×÷ÕßÓ¦¸ÃÊÇjavascript¸ßÊÖ¼¶±ðµÄÈË£¬ÏÖÔÚ¾ö¶¨½èÀ´Ò»Óã¬ÎÒ°ÑËüÂÔ¼ÓÃÀ» ......

javascript Öпؼþ±³¾°É«µÄÉèÖÃ

function Search(){
//Èç¹ûǰһ¸ö¿Ø¼þµÄÖµ´óÓÚºóÒ»¸ö¿Ø¼þµÄÖµ(ǰÌáÊǺóÒ»¸ö¿Ø¼þ²»ÊÇ¿Õ,¿ÕµÄÇé¿öϲ»×öÈκδ¦Àí)
 if(document.forms[0].koteifrom.value > document.forms[0].koteiTo.value && document.forms[0].koteiTo.value != ""){
  alert('messageÄÚÈÝ');
  var koteifrom ......

javascript,js»ñµÃ¿Í»§¶Ë¼ÆËã»úIP»òÃû³Æ·½·¨

1¡¢rcbdyctl
view plaincopy to clipboardprint?
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html;   
charset=gb2312">  
<title>JS»ñÈ¡¿Í»§¶ËIP</title>  
</head>  
<b ......

ÍøÒ³ÆÁ±Î¼üÅ̰´¼üjavascript½Å±¾


function keyDown(){
  //ÆÁ±ÎÊó±êÓÒ¼ü¡¢Ctrl+n¡¢shift+F10¡¢F5ˢС¢Í˸ñ¼ü
   //alert("ASCII´úÂëÊÇ£º"+event.keyCode);
   if ((window.event.altKey)&&
    ((window.event.keyCode==37)||   //ÆÁ±Î Alt+ ·½Ïò¼ü ←
     (w ......

Javascript ×Ö·û´® substring Óë substr Çø±ð

stringObject.substring(start,end);
º¯Êý·½·¨½«·µ»ØÒ»¸ö°üº¬´Ó start µ½×îºó£¨²»°üº¬ end £©µÄ×Ó×Ö·û´®µÄ×Ö·û´®.
start     ±ØÐè¡£Ò»¸ö·Ç¸ºµÄÕûÊý£¬¹æ¶¨ÒªÌáÈ¡µÄ×Ó´®µÄµÚÒ»¸ö×Ö·ûÔÚ stringObject ÖеÄλÖÃ.
stop     ¿ÉÑ¡¡£Ò»¸ö·Ç¸ºµÄÕûÊý£¬±ÈÒªÌáÈ¡µÄ×Ó´®µÄ×îºóÒ»¸ö×Ö·ûÔÚ stringObject ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ