¹ØÓÚ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>
Ïà¹ØÎĵµ£º
function
fn(a,b,c)
{
var
s
=
""
;
var
i;
s
+=
"
º¯Êý´«Èë²ÎÊý¸öÊý:
"
+
fn.arguments.length
+
"
\n
" ......
×î½ü×öµÄÏîÄ¿ÖÐÓиöÒªÇó£¬ÐèÒª½«Êý¾Ýµ¼³öµ½ExcelÖУ¬¹ØÓÚÕâ¸ö¾Í²»ÊÇʲôÎÊÌâ£¬ÍøÉϵÄ×ÊÁϺܶࡣ¿Éµ±TableÖÐÓÐInput(text)Ö®ÀàµÄÔªËØÊÇÔõô°ì£¿
×ö·¨£º
ÐÞ¸ÄInputµÄouterHTML;
¾ßÌåÀý×Ó£º
function resetInput()
{
&nbs ......
×î½üд¶«Î÷µÄʱºò·¢ÏÖÐèÒª¶Ôä¯ÀÀÆ÷µÄ¹Ø±Õ½øÐмàÌý,µ±Óû§¹Ø±ÕµÄʱºòÐèÒªµ÷ÓÃsession.invalid();Çå¿ÕsessionÐÅÏ¢,µ«ÊÇ×Ðϸһ²éÊֲᷢÏÖÎÞÂÛÊÇbody»¹ÊÇwindow¶¼Ã»ÓÐoncloseʼþ,Ö®ºóonload,onunload,beforeunloadÈý¸öʼþ
È»¶øÈý¸öʱ¼äÎÞÂÛÊÇÄĸö¶¼ÎÞ·¨µ¥¶À½â¾öµ¥¶À¼àÌýä¯ÀÀÆ÷¹Ø±ÕµÄʼþ,ÒòΪÔÚä¯ÀÀÆ÷Õý³£ÔËÐÐʱÏȼÓÔØµÄÊÇbe ......
ÔÚ½ñÌìÍøÂ翪·¢·½Ã棬JavaScriptÆðÁ˺ܹؼüµÄ×÷Óã»ÏñjQuery, MooTools, PrototypeµÈµÈJavaScript¿ò¼ÜÒÔ¼°ÆäËüJavaScriptÀà¿âÈÃÎÒÃǵÄÉú»îÇáËÉÁ˲»ÉÙ¡£µ«ÊÇËæ×ÅRich Internet Applications(RIA)µÄÃæÊÀ¼°Ñ¸ËÙÓ¦Óã¬Êéд¸üÇ¿´ó£¬¸ü¼áʵ¿É¿¿µÄJavaScriptµÄÐèÒªÈÕÒæÆÈÇС£
²»¹ÜÄãÊÇJavaSc ......
Êý¾ÝÀàÐÍ
»ù±¾Êý¾ÝÀàÐÍ
»ù±¾Êý¾ÝÀàÐÍÊÇJSÓïÑÔ×îµ×²ãµÄʵÏÖ¡£
¼òµ¥ÊýÖµÀàÐÍ: ÓÐUndefined, Null, Boolean, NumberºÍString¡£×¢Ò⣬ÃèÊöÖеÄÓ¢Îĵ¥´ÊÔÚÕâÀï½öÖ¸Êý¾ÝÀàÐ͵ÄÃû³Æ£¬²¢²»ÌØÖ¸JSµÄÈ«¾Ö¶ÔÏóN an, Boolean, Number, StringµÈ£¬ËüÃÇÔÚ¸ÅÄîÉϵÄÇø±ðÊDZȽϴóµÄ¡£
¶ÔÏó: Ò»¸öÎÞÐòÊôÐԵļ¯ºÏ£¬ÕâЩÊôÐÔµÄֵΪ¼òµ¥ÊýÖµÀ ......