js后缀判断

var extension=fileName.substring(fileName.lastIndexOf('.')+1);
posted @ 2016-09-13 14:50  liaodaoxian  阅读(1422)  评论(0编辑  收藏  举报