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

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

<script type="text/javascript">  
function getFileSize(filePath) {  
   var image=new Image();  
   image.dynsrc=filePath;  
   alert(image.fileSize);  
}  
</script>  
<body>  
<INPUT TYPE="file" NAME="file" SIZE="30" onchange="getFileSize(this.value)">  
</body>


Ïà¹ØÎĵµ£º

JavaScriptÖеÄÃæÏò¶ÔÏó Àà


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......

javascriptÖ®getAttribute()·½·¨

getAttribute()·½·¨
 ¡ñÒ»·ÝÎĵµ¾ÍÊÇÒ»¿Ã½ÚµãÊ÷¡£
  ¡ñ½Úµã·ÖΪ²»Í¬µÄÀàÐÍ£ºÔªËؽڵ㡢ÊôÐÔ½ÚµãºÍÎı¾½ÚµãµÈ¡£
  ¡ñgetElementById()·½·¨½«·µ»ØÒ»¸ö¶ÔÏ󣬸öÔÏó¶ÔÓ¦×ÅÎĵµÀïµÄÒ»¸öÌØ¶¨µÄÔªËØ½Úµã¡£
  ¡ñgetElementsByTagName()·½·¨½«·µ»ØÒ»¸ö¶ÔÏóÊý×飬ËüÃÇ·Ö±ð¶ÔÓ¦×ÅÎĵµÀïµÄÒ»¸ ......

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

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

JavaScript¶ÔÏóÄ£ÐÍ Ö´ÐÐÄ£ÐÍ

Êý¾ÝÀàÐÍ
»ù±¾Êý¾ÝÀàÐÍ
»ù±¾Êý¾ÝÀàÐÍÊÇJSÓïÑÔ×îµ×²ãµÄʵÏÖ¡£
¼òµ¥ÊýÖµÀàÐÍ: ÓÐUndefined, Null, Boolean, NumberºÍString¡£×¢Ò⣬ÃèÊöÖеÄÓ¢Îĵ¥´ÊÔÚÕâÀï½öÖ¸Êý¾ÝÀàÐ͵ÄÃû³Æ£¬²¢²»ÌØÖ¸JSµÄÈ«¾Ö¶ÔÏóN an, Boolean, Number, StringµÈ£¬ËüÃÇÔÚ¸ÅÄîÉϵÄÇø±ðÊDZȽϴóµÄ¡£
¶ÔÏó: Ò»¸öÎÞÐòÊôÐԵļ¯ºÏ£¬ÕâЩÊôÐÔµÄֵΪ¼òµ¥ÊýÖµÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ