- 博客(3)
- 收藏
- 关注
原创 根据文件地址下载
//根据文件地址下载 downloads(url){ let xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", url, true); xmlhttp.responseType = "blob"; xmlhttp.onload = function () { if (this.status == 200) { const blob = this.response; const link = documen
2022-05-11 16:09:25
424
1
原创 vue3+vite 使用swiper6
先创建项目( 这儿使用的是yarn 使用npm也可以 ) yarn create @vitejs/app my-vue-app --template vue cd my-vue-app yarn yarn dev 安装完成以后的样子 然后安装swiper yarn add swiper 下载完swiper要引入 ( 此处是全局引入 ) 在components下创建一个swiper.js swiper.js里面的代码 import { createApp } from 'vue' const ap
2021-07-07 19:29:49
2142
4
原创 安装xlsx-style报错./cptable in ./node_modules/xlsx-style@0.8.13@xlsx-style/dist/cpexcel.js
安装xlsx-style报错./cptable in ./node_modules/xlsx-style@0.8.13@xlsx-style/dist/cpexcel.js 方案1:修改源码 在\node_modules\xlsx-style\dist\cpexcel.js 807行 把var cpt = require(’./cpt’ + ‘able’);修改成var cpt = cptable; 方案2 在vue.config.js下 module.exports = { configureWeb
2021-07-07 18:15:44
3207
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅