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

JavaScript³£ÓÃÑéÖ¤º¯Êý

JavaScript³£ÓÃÑéÖ¤º¯Êý
Òý×Ô:http://www.webdeveloping.cn/blog/?action=show&id=209
 //УÑéÊÇ·ñÈ«ÓÉÊý×Ö×é³É      
 function isDigit(s) {      
  var patrn=/^[0-9]{1,20}$/;      
  if (!patrn.exec(s)) return false      
  return true      
 }      
    
 //УÑéµÇ¼Ãû£ºÖ»ÄÜÊäÈë5-20¸öÒÔ×Öĸ¿ªÍ·¡¢¿É´øÊý×Ö¡¢“_”¡¢“.”µÄ×Ö´®    
 function isRegisterUserName(s) {      
  var patrn=/^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/;      
  if (!patrn.exec(s)) return false      
  return true      
 }     
    
 //УÑéÓû§ÐÕÃû£ºÖ»ÄÜÊäÈë1-30¸öÒÔ×Öĸ¿ªÍ·µÄ×Ö´®      
 function isTrueName(s){      
  var patrn=/^[a-zA-Z]{1,30}$/;      
  if (!patrn.exec(s)) return false      
  return true      
 }      
    
 //УÑéÃÜÂ룺ֻÄÜÊäÈë6-20¸ö×Öĸ¡¢Êý×Ö¡¢Ï»®Ïß      
 function isPasswd(s){      
  var patrn=/^(\w){6,20}$/;      
  if (!patrn.exec(s)) return false      
  return true      
 }      
    
 //УÑéÆÕͨµç»°¡¢´«ÕæºÅÂ룺¿ÉÒÔ“+”¿ªÍ·£¬³ýÊý×ÖÍ⣬¿Éº¬ÓГ-”      
&


Ïà¹ØÎĵµ£º

¡¶Îò͸javascript¡·Ñ§Ï°±Ê¼Ç£ºËÄ¡¢º¯ÊýµÄħÁ¦

ÒýÑÔ
 
JavaScriptµÄ´úÂë¾ÍÖ»ÓÐ function Ò»ÖÖÐÎʽ£¬function ¾ÍÊǺ¯ÊýµÄÀàÐÍ¡£Ò²ÐíÆäËû±à³ÌÓïÑÔ»¹ÓÐ procedure »ò method µÈ´úÂë¸ÅÄµ«ÔÚ JavaScript ÀïÖ»ÓÐ function Ò»ÖÖÐÎʽ¡£µ±ÎÒÃÇдÏÂÒ»¸öº¯ÊýµÄʱºò£¬Ö»²»¹ýÊǽ¨Á¢ÁËÒ»¸öfunctionÀàÐ͵ÄʵÌå¶øÒÑ¡£
 
º¯ÊýÀàÐÍ
 
1.    &n ......

¡¶Îò͸javascript¡·Ñ§Ï°±Ê¼Ç£º¾Å¡¢Ô­Ðͱ϶

ÒýÑÔ
 
      prototypeÔ´×Ô·¨ÓÈí¼þ½çµÄ±ê×¼·­ÒëΪ“Ô­ÐÍ”£¬´ú±íÊÂÎïµÄ³õʼÐÎ̬£¬Ò²º¬ÓÐÄ£ÐͺÍÑù°åµÄÒâÒå¡£
 
prototypeÊôÐÔ
 
JavaScriptµÄËùÓÐfunctionÀàÐ͵ĶÔÏó¶¼ÓÐÒ»¸öprototypeÊôÐÔ¡£Õâ¸öprototypeÊôÐÔ±¾ÉíÓÖÊÇÒ»¸ö object ÀàÐ͵ĶÔÏó£¬Òò´ËÎÒÃÇÒ²¿ÉÒÔ¸ ......

Íæ͸javascriptµ¯³ö´°¿Ú

Íæ͸javascriptµ¯³ö´°¿Ú
--------------------------------------------------------------------------------


¡¡¡¡¾­³£ÉÏÍøµÄÅóÓÑ¿ÉÄܻᵽ¹ýÕâÑùһЩÍøÕ¾£¬Ò»½øÈëÊ×Ò³Á¢¿Ì»áµ¯³öÒ»¸ö´°¿Ú£¬»òÕß°´Ò»¸öÁ¬½Ó»ò°´Å¥µ¯³ö£¬Í¨³£ÔÚÕâ¸ö´°¿ÚÀï»áÏÔʾһЩעÒâÊÂÏî¡¢°æȨÐÅÏ¢¡¢¾¯¸æ¡¢»¶Ó­¹â¹ËÖ®ÀàµÄ»°»òÕß×÷ÕßÏëÒªÌرðÌáʾµ ......

»ùÓÚJavaScriptºÍCSSµÄWebͼ±í¿ò¼ÜºáÏò¶Ô±È

jQuery, MooTools, Prototype µÈÓÅÐãµÄ JavaScript ¿ò¼ÜÓµÓи÷ÖÖÇ¿´óµÄ¹¦ÄÜ£¬°üÀ¨»æÖÆ Web ͼ±í£¬Ê¹ÓÃÕâЩ¿ò¼ÜÒÔ¼°ÏàÓ¦²å¼þ£¬ÎÒÃÇ¿ÉÒԷdz£ÇáËɵØʵÏÖÇúÏßͼ£¬Ô²±ýͼ£¬Öù״ͼµÈ Web ͼ±íµÄ»æÖÆ£¬¶ø²»±ØÏóÒÔÍùÄÇÑùͨ¹ý¸´Ô Flash ¼¼ÊõʵÏÖ¡£±¾ÎĽéÉÜÁË9¸öÓÅÐãµÄ»ùÓÚ JavaScript Óë CSS µÄ Web ͼ±í¿ò¼Ü¡£ 1. Flot Flot ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ