javascript获取上传文件的扩展名

1function CheckAll(){
2    var filePath=$("fileVideo").value;    
3    if(filePath.substr(filePath.indexOf('.')+1).toLowerCase()!="flv"return false;
4    else return true;
5}
 

posted on 2008-06-26 00:24  客家浪子  阅读(1240)  评论(0编辑  收藏  举报

导航