English
中文(简体)
中文(繁体)
한국어
日本語
English
Português
Español
Русский
العربية
Indonesia
Deutsch
Français
ภาษาไทย
Home
Downcodes
Programming Related
Website Building Resources
Books and Tutorials
Web Design Tutorials
Network Programming Tutorials
Mobile Games
Mobile Software
Articles
Home
>
Web design tutorial
>
Javascript tutorial
Javascript gets the size of any format file
Author:Eve Cole
Update Time:2009-06-11 16:26:21
<script type="text/javascript">
function g( filePath )
{
var img = new Image();
img.dynsrc = filePath;
return img.fileSize;
}
</script>
Related Articles
Use html css javascript to create your own RIA graphic tutorial page 1/2
2024-11-17
The connection between JavaScript and ECMAScript
2023-04-04
Introduction to JavaScript front-end iterator and generator
2023-04-04
Parsing JavaScript array reduce() method usage examples
2023-04-04
JavaScript proxy object Proxy first experience simple data-driven view overview
2023-04-04
Introducing 5 common JavaScript memory errors
2023-04-04
Help you get JavaScript objects
2022-08-26
JavaScript regular expressions, this article is enough
2022-08-26
Let’s talk about JavaScript functional programming
2022-08-29
JSON for JavaScript learning and understanding (summary sharing)
2022-08-30
What is the reason for cross-domain JavaScript?
2022-09-01
A quick summary of JavaScript learning knowledge points
2022-09-02