axios请求pdf文件流并下载保存
接口设置 responseType: 'blob' 1234567function DownloadPdf() { return request({ url: 'xxxxx', method: 'get', responseType: 'blob' ...
接口设置 responseType: 'blob' 1234567function DownloadPdf() { return request({ url: 'xxxxx', method: 'get', responseType: 'blob' ...
父元素常用属性flex-direction设置主轴方向 属性值 说明 row 默认从左到右 row-reverse 从右到左 column 从上到下 column-reverse 从下到上 justify-content设置主轴上的子元素排列方式 属性值 说明 flex-start 默认从头开始,如果主轴是x轴,则从左到右 flex-end...
问题:直接使用v-html会发现\n不会换行问题解决:加上style="white-space: pre-line" 示例: 123456<template> <div style="white-space: pre-line" v-html="htmlStr"></div></te...
父组件1234567891011121314151617181920212223242526272829303132333435363738394041<template><tree @on-click="getItem" :data="data"></tree></template><script...
定位:TypeScript是JavaScript的超集(功能更强大(?),语法更易懂和简洁(?))运行过程:.ts文件编译成.js文件【TypeScript编译器或Babel转译】目标:开发大型项目 类型枚举 Enum关键字:枚举枚举类型用于定义数值集合。 123enum Color {Red, Green, Blue};let c: Color = Color.Blue...
清除缓存 1npm cache clean -f 安装n模块(n模块是专门用来管理nodejs版本的) 1npm install -g n 更新node 1234n stable // 把当前系统的 Node 更新成最新的 “稳定版本”n lts // 长期支持版n latest // 最新版n 10.14.2 // 指定安装版本 查看node版本 1Node -v
环境要求 Git NodeJs gitee账户 步骤 全局安装hexo npm install -g hexo-cli 准备blog项目的目录下初始化项目【wangjun-blog】 hexo init wangjun-blog 进入项目根目录 cd wangjun-blog npm install 本地开启调试服务 hexo s hexo命令 写文章 - hexo ne...