![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工作项目常见问题
ProbeGene
路漫漫其修远兮, 吾将上下而求索...
展开
-
js类型判断的几种方法
js类型判断的几种方法/** JS中 判断一个变量类型的几种方式 * 1. typeof 没法区分对象类型. 数组, object * 2. Object.prototype.toString.call() * 3. instanceof * 4. constructor */要说到 JS 类型判断的几种方式, 我们就需要知道 JS 有哪些数据类型# ES5阶段, 数据类型有6 种: string, boolean, number, null, undefined, objec原创 2021-07-08 13:53:12 · 315 阅读 · 0 评论 -
git add . 报错 The following problems have occurred when adding the files: Pathspec ‘part02
git add . 报错 The following problems have occurred when adding the files: Pathspec 'part02git add 添加文件的时候报这个错, 说明 当前这个文件所在的模块是一个 仓库.这个仓库在外层 git 仓库之内, 所以管理冲突. 会报错.进入到里面这个仓库,删除掉 .git文件夹, 再提交#注意==如果删除了.git文件夹还报这个错, 那说明之前管理这个模块的仓库还有缓存. 进入里面这个 git 仓库,执行删除缓存原创 2021-07-07 10:55:51 · 5712 阅读 · 0 评论 -
axios下载文件请求, responseType为blob时捕获后端错误问题
axios 下载文件请求, responseType为blob时, 无法捕获后端抛出错误问题 axios({ method: data.method, url: baseUrl + `${data.url}${data.params ? '?' + data.params : ''}`, responseType: 'blob', }).then((res) => { console.log(' res -->>原创 2021-01-06 10:53:55 · 1616 阅读 · 0 评论