我相信您可以执行以下操作来获取文件名的扩展名。
var path = require('path')path.extname('index.html')// returns'.html'
上一篇 如何使用react-router将this.state和this.props传递到路由
下一篇 如何在JMeter中修改/添加到Cookie?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号