08 2021 档案
摘要:使用cmd删除 rmdir F:\project\sourceCode\node_modules\ /s /q
阅读全文
摘要:Json文件解析失败 mpm ERR! Unexpected end of JSON input while parsing near ... npm ERR! errno -4048 npm ERR! syscall scandir 解决方案 npm cache clean --force npm
阅读全文
摘要:单行文本超出省略(兼容性高) .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 多行文本超出省略(Chrome) /* 以两行为例 */ .ellipsis-2 { overflow: hidd
阅读全文
摘要:堆 heap 堆的特点是"无序"的 key-value"键值对"存储方式。堆的存取方式跟顺序没有关系,不局限出入口。 栈 stack 栈的特点是"LIFO,即后进先出(Last in, first out)"。数据存储时只能从顶部逐个存入,取出时也需从顶部逐个取出。 队列 queue 队列的特点是是
阅读全文
摘要:git 存储区 Workspace:工作区 Index / Stage:暂存区 Repository:本地仓库 Remote:远程仓库 新建代码仓库 # 在当前目录新建一个Git代码库 git init # 新建一个目录,将其初始化为Git代码库 git init [project-name] #
阅读全文
摘要:/** * 关闭浏览器窗口 */ export const closeWindow = () => { var userAgent = navigator.userAgent if (userAgent.indexOf('Firefox') !== -1 || userAgent.indexOf('
阅读全文
摘要:/** * 下载blob数据 * @param {object} res blob数据下载的响应头 * @param {String} fileName 文件名,可选 */ export function downloadBlobData (res, fileName) { const fileNa
阅读全文
摘要:/** * 获取指定的cookie * @param {String} key cookie的key * @returns {String} */ export function getCookie(key) { const cookie = document.cookie.split(';') f
阅读全文
摘要:/** * 通过url地址下载数据 * @param {String} url 资源下载路径 * @param {String} name 资源文件名称 */ export function exportFileByUrl(url, name) { const a = document.create
阅读全文

浙公网安备 33010602011771号