JS检测图片大小的实例
代码如下: <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8′′ /> <input type=”hidden” name=”MAX_FILE_SIZE” id=”MAX_FILE_SIZE” value=”8000000′′ /> <input type=”file” name=”files” id=”files” onchange=”checkFileType(this)”/> [removed] var maxSize=document.getEl