//JavaScript根据文件名判断文件类型 var imgExt = new Array(".png",".jpg",".jpeg",".bmp",".gif");//图片文件的后缀名 var docExt = new Array(".doc",".docx");//word文件的后缀名 var xlsExt = new Array(".xls"…
javacript至今共有7中类型 Six data types that are primitives: Boolean Null Undefined Number String Symbol (new in ECMAScript 6) Object 关于typeof的详情解释 demo1: Function.prototype.toString() 与 Object.prototype.toString()的区别: var f = function(){}; f.prototype.hasO…