vue-simple
Version:
Use Vue in the simplest and easiest way, contain more than one of plugins and other to do that, i hope you will like it.
30 lines (24 loc) • 745 B
JavaScript
// 常用 mimetype:
var MIME = {
bin: 'application/octet-stream',
pdf: 'application/pdf',
doc: 'application/msword',
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
xls: 'application/vnd.ms-excel',
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
ppt: 'application/vnd.ms-powerpoint',
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
gz: 'application/x-gzip',
zip: 'application/zip',
mp3: 'audio/mpeg',
m3u: 'audio/x-mpegurl',
jpg: 'image/jpeg',
bmp: 'image/bmp',
png: 'image/png',
ico: 'image/x-icon',
txt: 'text/plain',
css: 'text/css',
html: 'text/html',
json: 'application/json'
};
export default MIME;