| /********************************** file ***************************************/ /** * added by LxcJie 2004.6.25 * 得到文件的后缀名 * oFile为file控件对象 */ function getFilePostfix(oFile) { if(oFile == null) return null; var pattern = /(.*)\.(.*)$/gi; if(typeof(oFile) == "object") { if(oFile.value == null || oFile.value == "") return null; var arr = pattern.exec(oFile.value); return RegExp.$2; } else if(typeof(oFile) == "string") { var arr = pattern.exec(oFile); return RegExp.$2; } else return null; }//~~~ /*--------------------------------- file --------------------------------------*/
|
| 共5页: 上一页 [1] [2] [3] [4] 5 下一页 |
评论加载中…