- 博客(4)
- 收藏
- 关注
原创 Element Upload 上传与下载
一、结构 <el-upload class="upload" :action="uploadUrl1" :before-upload="function (file) { return beforeUpload(1, file)}" :on-preview="function (file) { return handlePreview(1, file)}" :before-remove="function (file,fileList) { retu
2022-01-07 17:43:39
929
原创 a标签download属性IE兼容问题
回顾https://www.runoob.com/tags/att-a-download.html一、实现下载exportLeftMarketing(this.searchKeywords).then(res => { let blob = new Blob([res], {type: 'application/vnd.ms-excel'}) const link = document.createElement...
2021-12-01 16:16:34
1387
原创 手把手前端国际化 i18n
一、背景vue + element +i18n二、引入npm install vue-i18n --save-devyarn add vue-i18n --save-dev 三、配置import VueI18n from 'vue-i18n'import Element from 'element-ui'import 'element-ui/lib/theme-chalk/index.css'import enLocale from 'e...
2021-11-11 17:41:42
1295
1
原创 vue打包优化
一、webpack-bundle-analyzer使用webpack-bundle-analyzer可以查看项目各模块的大小。 1.0 安装 npm/cnpm install --save-dev webpack-bundle-analyzer2.0 配置const BundleAnalyzerPlugin = require('webpack-...
2021-11-11 14:20:08
198
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人