nodejs-mime类型
2021-04-24 20:28
阅读:1630
标签:span 标准 strong 打开方式 使用 打开 htm type pre
mime是一个互联网标准,通过设定它就可以设定文件在浏览器的打开方式。
mime使用方法:
- 使用mime模块查询文件的MIME类型:
mime.getType(‘/path/to/file.txt‘); // => ‘text/plain‘ mime.getType(‘file.txt‘); // => ‘text/plain‘ mime.getType(‘.TXT‘); // => ‘text/plain‘ mime.getType(‘htm‘); // => ‘text/html‘
nodejs-mime类型
标签:span 标准 strong 打开方式 使用 打开 htm type pre
原文地址:https://www.cnblogs.com/Rivend/p/12233241.html
下一篇:HTML的语法和基本标签
评论
亲,登录后才可以留言!