
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
1.本地html文件的存放在根目录下找到public文件夹,在public文件夹下创建static文件夹,把html文件放入static文件夹中2.使用iframe标签引入html文件<template><iframesrc="/static/test.html":style="{width: width, height:height}" frameborder="0" >
后端返回文件流,vue下载到本地请求时需要设置responseType: “blob”,否则下载pdf文件打开会为空下载方法代码如下://url请求参数//params请求参数//filename文件名称export function download(url, params, filename) {return service.post(url, params, {transformReques
后端返回文件流,vue下载到本地请求时需要设置responseType: “blob”,否则下载pdf文件打开会为空下载方法代码如下://url请求参数//params请求参数//filename文件名称export function download(url, params, filename) {return service.post(url, params, {transformReques
先上代码//父组件import HjSubjects from "@/components/HjSubjects";export default {name: "YhkmUp",components: {HjSubjects,},showHjSubect:false,//子组件export default {name: "HjSubjects",components: {},props: {sho
base64图片格式转化为文件流核心代码://data:base64图片格式字符串//filename:文件名称base64toFile(data, fileName) {const dataArr = data.split(",");const byteString = atob(dataArr[1]);const options = {type: "image/jpeg",e