摘要: 先打流文件的返回值,如果时这样 首先查看请求的格式 将相应类型responseType设置成'blob' export function download (params) { return request({ url: '1111', method: 'get', params, response 阅读全文
posted @ 2022-05-25 21:07 魔露西 阅读(6563) 评论(1) 推荐(1) 编辑
摘要: 重写就行了不要用他的引入方法 ``` import Vue from 'vue' import Vuex from 'vuex' import test from './test' import modelConfig from './modelConfig' import Counter from 阅读全文
posted @ 2022-05-06 11:18 魔露西 阅读(104) 评论(0) 推荐(0) 编辑
摘要: # 所需模块 * imageinfo * image-size 使用npm安装即可 #方法 将会把分类后的数据放置到指定文件夹 函数定义 /* 复制图片 */ function gotoimg(oldurl, newurl) { fs.readFile(oldurl, function (err,  阅读全文
posted @ 2021-04-19 15:27 魔露西 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 远程登录服务器并安装git ​ ssh远程连接指令 ssh 主机名@服务器ip地址 正确输入密码后进入命令行界面... 新建/选择仓库所在位置 然后新建一个文件夹用作git仓库(文件夹名最好跟准备推到服务器的仓库文件夹名相同), 并切换到此文件夹下, 接着将用git init --bare命令在此文 阅读全文
posted @ 2021-01-19 17:38 魔露西 阅读(639) 评论(0) 推荐(0) 编辑
摘要: /* 版本信息获取 */ // 各主流浏览器 getBrowser() { var u = navigator.userAgent var bws = [{ name: 'sgssapp', it: /sogousearch/i.test(u) }, { name: 'wechat', it: /M 阅读全文
posted @ 2021-01-19 17:33 魔露西 阅读(5049) 评论(0) 推荐(0) 编辑
摘要: /* 滚动条样式 */ /*修改滚动条样式*/ div::-webkit-scrollbar{ width:10px; height:10px; /**/ } div::-webkit-scrollbar-track{ background: rgb(239, 239, 239); border-r 阅读全文
posted @ 2021-01-19 17:31 魔露西 阅读(319) 评论(0) 推荐(0) 编辑
摘要: / * @param {string} path 判断字符串是否是https?:|mailto:|tal: 开头的 * @returns {Boolean} */ export function isExternal(path) { return /^(https?:|mailto:|tel:)/. 阅读全文
posted @ 2021-01-19 17:29 魔露西 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 路由视图一般分为两种形式:命名路由和非命名路由 <router-view></router-view> <router-view name="footer"></router-view> 想要知道怎么使用,先了解下路由的结构 路由根据组件中的配置从而显示上下两种不同的视图 注: 其中componen 阅读全文
posted @ 2020-09-18 17:27 魔露西 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 作者: 阮一峰 日期: 2016年9月18日 一年半前,我写了《React 入门实例教程》,介绍了 React 的基本用法。 React 只是 DOM 的一个抽象层,并不是 Web 应用的完整解决方案。有两个方面,它没涉及。 代码结构 组件之间的通信 对于大型的复杂应用来说,这两方面恰恰是最关键的。 阅读全文
posted @ 2020-09-03 15:53 魔露西 阅读(241) 评论(0) 推荐(0) 编辑