/*nodejs自带的模块:path*/var path=require('path');//获取文件的后缀名var extname=path.extname("123.html");//打印出来console.log(extname);