How can I get file extensions with JavaScript?
来源:互联网 发布:vx软件 编辑:程序博客网 时间:2024/06/07 09:27
http://stackoverflow.com/a/25483772/2177408
If you are looking for a specific extension and know its length, you can use substr:
var file1 = "50.xsl";if (file1.substr(-4) == '.xsl') { // do something}
0 0
- How can I get file extensions with JavaScript?
- How can I change a file's encoding with vim?
- How can i get FWHM?
- How can I get a String from HID device in Python with evdev?
- How Do I get Started with Oracle?
- How do I get started with CUDA?
- How can I print a JavaScript object?
- Learning Perl: 1.3. How Can I Get Perl?
- How can I install an EmEditor syntax file
- How can I connect to Android with ADB over TCP?
- How can I capture the audio output with GStreamer?
- How can I autologin to desktop with systemd?
- How Can I Stop
- 【转】How do I use MDGModifier so I can get reliable Undo/Redo?
- How can I get the next auto increment value from mssql?
- How can I get the local group name for guests/administrators?
- How can I get the IPv4 address of an interface in linux from C code ?
- How can I get the logical valume by the datafile names and ASM disks?
- js页面滚动浮动层智能定位(jQuery)实例页面
- 第4周 项目3-单链表应用
- Servlet 3.0 新特性详解
- UITableViewCell中设置不同图片尺寸相同以及设置图片为圆形的方法
- 工作方法总结
- How can I get file extensions with JavaScript?
- 完整java开发中JDBC连接数据库代码和步骤
- SecureCRT 7.2.0 Mac版密码无法保存的解决办法(转载)
- [深入理解Java虚拟机]第三章 垃圾收集算法
- 第三周项目2——建设“顺序表”算法库
- Ubuntu 命令行基础,解压操作
- HTML <input type='file'> File Selection Event
- 多线程之间的同步控制
- 第四周项目3-单链表的应用