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

javascript checkboxÊ÷

http://www.cnblogs.com/rubylouvre/archive/2009/10/26/1589692.html
Ñо¿Á˼¸Ì죬ÖÕÓÚ¸ã³ö×Ô¼ºµÄÊ÷À´¡£×ܽáһϣ¬Áô´ýÒÔºó¸Ä½øÓá£
×÷ΪUI¿Ø¼þµÄÊ÷ÓëÊý¾Ý½á¹¹µÄÊ÷ÓкܴóµÄ²»Í¬£¬Ëü·ÖΪ¸ù½Úµã£¬Ö¦½ÚµãÓëÒ¶½Úµã¡£¸ù½ÚµãÓÐ×ÓÊ÷£¬²¢²»Á¥ÊôÓÚÆäËûÊ÷¡£Ö¦½ÚµãÓÐ×ÓÊ÷£¬²¢×÷Ϊijһ×ÓÊ÷µÄ½Úµã¶ø´æÔÚ¡£Ò¶½ÚµãÖ»×÷Ϊijһ×ÓÊ÷µÄ½Úµã¶ø´æÔÚ£¬²¢ÇÒûÓÐ×ÓÊ÷¡£µ«½öÊÇÕâÑù£¬ÎÞ·¨»æÖÆÊ÷µÄ¡£ÎÒÃÇ¿´ÏÂÃæµÄͼ£¬Ê÷ÔÚÍøÒ³ÖÐÎÞÂÛÑù×ÓÈçºÎ£¬´ÓÉϵ½Ï¶¼ÊÇÒ»ÐÐÐзֿªµÄ¡£Ã¿Ò»Ðж¼Óм¸ÕÅͼƬÓëÎı¾¡£ÕâЩͼƬ´óÖ·ÖÈýÀ࣬һÊÇÐéÏßͼ±êÓë¼ÓºÅͼ±êÓë¼õºÅͼ±ê£¬ÎÒ°ÑËüÃÇͳ³ÆΪÁ¬Ïßͼ±ê£»¶þÊÇ×°ÊÎÓõÄÎļþ¼Ðͼ±ê£¬»òÕ߸ù½ÚµãµÄÄǸöµØÇò£¬»òÕßÒ¶×Ó½ÚµãµÄÎĵµ£¬»òÕßÀàËƵĵçÄÔ¡¢Æ»¹û¡¢»ØÊÕÕ¾µÈµÈ£¬ÎÒ³Æ֮ΪװÊÎͼ±ê£»×îºóÊÇcheckbox£¬Ëü·ÖÈýÖÖ״̬¡£Í¼±êµÄÖÖÀàÈç´Ë¶à£¬½öÊǸùÖ¦Ò¶¼Ó¹Ø±ÕÕ¹¿ªÕâÁ½ÖÖ״̬£¬Ò²Ö»ÊÇÁùÖÖ¿ÉÄÜ£¬Òò´ËÎÒÃÇ»¹µÃ°ÑÖ¦½Úµãϸ·ÖΪÆÕ֦ͨÓëÄ©Ö¦£¬Ò¶½ÚµãÒ²Ò»Ñù¡£ÓÉÓÚÁ¬Ïßͼ±êÓë×°ÊÎͼ±êµÄ×÷ÓúÜÏàËÆ£¬×°ÊÎͼ±êºÃÏñÊÇ´ÓÊÓ¾õÉÏÇ¿µ÷µã»÷Á¬Ïßͼ±ê»á³öÏÖµÄЧ¹û£¬Òò´ËÎÒÃÇ¿ÉÒÔÓÃCSS°ÑËüÃÇÕûºÏµ½Ò»Æð£¬ÒÔ½ÚÊ¡Ò»¸öDOM¡£
ÎÒÃǵ¥¶ÀÄøù½Úµã·ÖÎö¡£±íÃæÉÏ£¬ËüÓÐÈý¸öͼ±ê£¬Ò»¸öÎı¾£¬ÊµÖÊÉÏ£¬Ö»ÓÐÁ½¸öͼ±ê£¬µÚ¶þ×÷ΪµÚÒ»¸öµÄ±³¾°¶ø´æÔÚ£¬Îı¾Î»ÓÚspanÔªËØÖС£Èç¹ûÏëµã»÷ÎÄ×ÖÌøת£¬Ò²¿ÉÒÔ»»³ÉAÔªËØ¡£´ËÍ⣬»¹Òþ²Ø×îºóÒ»¸öDIVÔªËØ¡£ËüÊÇÓÃÓÚ×°ÔØ×ÓÊ÷ÓëËõ½ø×ÓÊ÷µÄ¡£ÕâËĸöÔªËض¼Î»ÓÚÒ»¸öDIVÖУ¬ÎÒ°ÑËü³Æ֮Ϊ¸ù½Úµã£¬²¢ÉèÖÃindexÊôÐÔ£¬ÓÃÓÚÓëÔ­Êý¾ÝÏà±È½ÏÈ¡µÃ¸¸½ÚµãµÄindex¡£
01.var data = [
02.  [0,-1,"Öйú"],//¸ù½Úµã
03.  [1,0,"±±¾©ÊÐ"],//Ö¦½Úµã
04.  [2,0,"Ìì½òÊÐ"],//Ò¶½Úµã
05.  [3,1,"ÊÐϽÇø"],//Ö¦½Úµã
06.  [4,3,"¶«³ÇÇø"],//Ò¶½Úµã
07.  [5,3,"Î÷³ÇÇø"],//Ò¶½Úµã
08.  [6,3,"³çÎÄÇø"],//Ò¶½Úµã
09.  [7,3,"³¯ÑôÇø"],//Ò¶½Úµã
10.  [8,3,"·ą́Çø"]//Ò¶½Úµã
11.]
½Ó×ÅÎÒÃǸøͼ±ê¼ÓÈëһЩʶ±ðÒªËØ£¬Õâ¶ÔÑùʽ±í¿ØÖÆ»¹ÊÇʼþ°ó¶¨¶¼ºÜÓÐÎÞÓã¬ÒòΪ½ö½öÊÇÒ»¸öindexÊǷdz£·¦Á¦µÄ¡£µ±ÎÒÃǵã»÷Á¬Ïßͼ±ê£¬ÄǸö¼ÓºÅ»ò¼õºÅ£¬ÎÒÃÇÔõÑùÈóÌÐòÖªµÀÊǵã»÷ÁËËüÄØ£¿£¡ÎÒÃǸøËüÒ»¸öclassName£¬ÎªcollapseÓëunfold¡£Ö»ÒªÓÐÕâÁ½¸öÀàÖ®Ò»£¬ÎÒÃǾÍÖØÉèËüµÄclassName£¬Ô­À´ÊÇcollapse¾Í¸Ä³Éunfold£¬·´Ö®ÒàÈ»£¬È»ºóÔÙ¸ü»»Æäsrc£¬ÒÔ´ïµ½Çл»Í¼Æ¬µÄÄ¿µÄ¡£ËüºóÃæµÄ×°ÊÎͼ±êÊÇÓÃÑùÊ


Ïà¹ØÎĵµ£º

JavascriptÖеÄarguments ¶ÔÏó


function
 fn(a,b,c)
{
    
var
 s 
=
 
""
;
    
var
 i;
    s 
+=
 
"
º¯Êý´«Èë²ÎÊý¸öÊý:
"
 
+
 fn.arguments.length 
+
 
"
\n
" ......

javaScriptÈçºÎ¼àÌýä¯ÀÀÆ÷¹Ø±Õʼþ

×î½ü䶫Î÷µÄʱºò·¢ÏÖÐèÒª¶Ôä¯ÀÀÆ÷µÄ¹Ø±Õ½øÐмàÌý,µ±Óû§¹Ø±ÕµÄʱºòÐèÒªµ÷ÓÃsession.invalid();Çå¿ÕsessionÐÅÏ¢,µ«ÊÇ×Ðϸһ²éÊֲᷢÏÖÎÞÂÛÊÇbody»¹ÊÇwindow¶¼Ã»ÓÐoncloseʼþ,Ö®ºóonload,onunload,beforeunloadÈý¸öʼþ
È»¶øÈý¸öʱ¼äÎÞÂÛÊÇÄĸö¶¼ÎÞ·¨µ¥¶À½â¾öµ¥¶À¼àÌýä¯ÀÀÆ÷¹Ø±ÕµÄʼþ,ÒòΪÔÚä¯ÀÀÆ÷Õý³£ÔËÐÐʱÏȼÓÔصÄÊÇbe ......

IE FireFox safariÏÂjavascript²Ù×÷embed±êÇ©£¨×ª£©

Õâ¶Îʱ¼ä̫æÁË£¬¶¼Ã»Ê±¼äÎÒ¹¤×÷ÐĵÃдÏÂÀ´ÁË£¬½ñÌì³é¸öʱ¼ä°ÑÇ°Á½Ì칤×÷ÖÐÅöµ½µÄһЩºÜ¼¬ÊÖµÄÎÊÌâÒÔ¼°½â¾öµÄ·½·¨£º
ÎÊÌâÃèÊö£º
embed±êÇ©½ÓÊܵ½Ö±²¥Á÷ÒÔºóÔÚIEÏ¿ÉÒÔͨ¹ýplay()ºÍpause()·½·¨µÃµ½ºÜºÃµÄ²¥·Å/ÔÝÍ£µÄ¿ØÖÆ£¬µ«ÔÚFireFoxºÍsafari È¥ÎÞÄÜΪÁ¦£¬ÔÚFirefoxºÍsafariÏ¿ÉÒÔÕý³£µÄ²¥·Å£¨ÔÚsafariÐèҪװmedia²å¼þ£©£ ......

¹ØÓÚjavascriptÅжÏÎļþ´óС

<script type="text/javascript">  
function getFileSize(filePath) {  
   var image=new Image();  
   image.dynsrc=filePath;  
   alert(image.fileSize);  
}  
</script> &nbs ......

javascript ÄÚ´æй¶¹¤¾ßʹÓÃ

javascriptÄÚ´æ鶵ÄÎÊÌâÒ»Ö±ÒÔÀ´¶¼²»Êܵ½´ó¼ÒµÄÖØÊÓ£¬Ô­ÒòÊǶÔÓû§µÄÓ°ÏìûÓÐ̫ʵ¼ÊµÄ±íÏÖ£¬»òÐí½ü¼¸ÄêÄڴ淢չѸËÙ¡£½Å±¾ÄÚ´æÔÙй¶Ҳ²»»áÓÐÌ«´óÓ°Ïì¡£
µ±È»×÷Ϊǰ¶Ë¿ª·¢µÄͬѧÃÇ£¬¾Í²»ÄÜÓÐÕâÑùµÄ½ÄÐÒÐÄÀí¡£³öÏÖmemory leaksºÜ´ó³Ì¶ÈÉÏÊÇÒòΪ³ÌÐòµÄ²»³ÉÊìºÍ±àÂ벻̫¹æ·¶Ôì³ÉµÄ¡£²»¹ý£¬ÕâÀï¾Í²»ËµÈçºÎ³öÏÖÎÊÌâµÄ£¬¶ÔÎÊÌâ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ