¹ØÓÚ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>
Ïà¹ØÎĵµ£º
<!--
/* 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 ......
getAttribute()·½·¨
¡ñÒ»·ÝÎĵµ¾ÍÊÇÒ»¿Ã½ÚµãÊ÷¡£
¡ñ½Úµã·ÖΪ²»Í¬µÄÀàÐÍ£ºÔªËؽڵ㡢ÊôÐÔ½ÚµãºÍÎı¾½ÚµãµÈ¡£
¡ñgetElementById()·½·¨½«·µ»ØÒ»¸ö¶ÔÏ󣬸öÔÏó¶ÔÓ¦×ÅÎĵµÀïµÄÒ»¸öÌØ¶¨µÄÔªËØ½Úµã¡£
¡ñgetElementsByTagName()·½·¨½«·µ»ØÒ»¸ö¶ÔÏóÊý×飬ËüÃÇ·Ö±ð¶ÔÓ¦×ÅÎĵµÀïµÄÒ»¸ ......
×î½üд¶«Î÷µÄʱºò·¢ÏÖÐèÒª¶Ôä¯ÀÀÆ÷µÄ¹Ø±Õ½øÐмàÌý,µ±Óû§¹Ø±ÕµÄʱºòÐèÒªµ÷ÓÃsession.invalid();Çå¿ÕsessionÐÅÏ¢,µ«ÊÇ×Ðϸһ²éÊֲᷢÏÖÎÞÂÛÊÇbody»¹ÊÇwindow¶¼Ã»ÓÐoncloseʼþ,Ö®ºóonload,onunload,beforeunloadÈý¸öʼþ
È»¶øÈý¸öʱ¼äÎÞÂÛÊÇÄĸö¶¼ÎÞ·¨µ¥¶À½â¾öµ¥¶À¼àÌýä¯ÀÀÆ÷¹Ø±ÕµÄʼþ,ÒòΪÔÚä¯ÀÀÆ÷Õý³£ÔËÐÐʱÏȼÓÔØµÄÊÇbe ......
Êý¾ÝÀàÐÍ
»ù±¾Êý¾ÝÀàÐÍ
»ù±¾Êý¾ÝÀàÐÍÊÇJSÓïÑÔ×îµ×²ãµÄʵÏÖ¡£
¼òµ¥ÊýÖµÀàÐÍ: ÓÐUndefined, Null, Boolean, NumberºÍString¡£×¢Ò⣬ÃèÊöÖеÄÓ¢Îĵ¥´ÊÔÚÕâÀï½öÖ¸Êý¾ÝÀàÐ͵ÄÃû³Æ£¬²¢²»ÌØÖ¸JSµÄÈ«¾Ö¶ÔÏóN an, Boolean, Number, StringµÈ£¬ËüÃÇÔÚ¸ÅÄîÉϵÄÇø±ðÊDZȽϴóµÄ¡£
¶ÔÏó: Ò»¸öÎÞÐòÊôÐԵļ¯ºÏ£¬ÕâЩÊôÐÔµÄֵΪ¼òµ¥ÊýÖµÀ ......