logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue使用iframe嵌入html

1.本地html文件的存放在根目录下找到public文件夹,在public文件夹下创建static文件夹,把html文件放入static文件夹中2.使用iframe标签引入html文件<template><iframesrc="/static/test.html":style="{width: width, height:height}" frameborder="0" >

#html#vue.js#javascript
vue下载pdf为空问题解决

后端返回文件流,vue下载到本地请求时需要设置responseType: “blob”,否则下载pdf文件打开会为空下载方法代码如下://url请求参数//params请求参数//filename文件名称export function download(url, params, filename) {return service.post(url, params, {transformReques

#vue.js#前端#javascript
vue下载pdf为空问题解决

后端返回文件流,vue下载到本地请求时需要设置responseType: “blob”,否则下载pdf文件打开会为空下载方法代码如下://url请求参数//params请求参数//filename文件名称export function download(url, params, filename) {return service.post(url, params, {transformReques

#vue.js#前端#javascript
vue父组件传值给子组件不生效

先上代码//父组件import HjSubjects from "@/components/HjSubjects";export default {name: "YhkmUp",components: {HjSubjects,},showHjSubect:false,//子组件export default {name: "HjSubjects",components: {},props: {sho

#vue.js#前端#javascript
前端将base64图片格式转化为文件流并传给后端

base64图片格式转化为文件流核心代码://data:base64图片格式字符串//filename:文件名称base64toFile(data, fileName) {const dataArr = data.split(",");const byteString = atob(dataArr[1]);const options = {type: "image/jpeg",e

#前端#vue.js#javascript
到底了