logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue允许跨域携带cookie

import axios from 'axios'axios.defaults.withCredentials = true;// 允许跨域携带cookie

十五、DOM扩展

一、Selectors APISelectors API Level 1: querySelector() querySelectorAll() Document类型和Element类型Selectors API Level 2: matches() find() findAll() 目前没有浏览器实现或者宣称实现find(...

文章图片
axios在IE浏览器中发送get请求时,请求参数为中文时出现乱码问题

1、设置headers中的content-type为'text/html; charset=utf-8'2、使用encodeURLhttp.interceptors.request.use(config => {if (config.method === 'get'||config.method==='GET') {config.url = encodeURI(config.url)}ret

axios上传文件+参数

1.需要将请求头的Content-Type设置为multipart/form-data2.有时候还需要将boundry设置为当前时间戳或者---WebKitFormBoundaryVCFSAonTuDbVCoAN3.将上传的参数需要使用FormData类型数据,参数和文件以键值对形式放入FormData中//request封装export function uploadFile(fd){retur

#http
thymeleaf携带数据跳转页面

1.新建spring boot项目,在pom.xml中添加thymeleaf依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>2.

#spring boot#java
到底了