在使用ie浏览器调用get请求时,如果请求方法一样,会默认先缓存,后面每次都先从缓存取,这个问题可能引发奇怪鉴权问题 普遍解决:get请求后加随机数,需要改代码 如果用的nginx做前端服务器,可以在server中增加配置项: add_header Cache-Control "no-cache, ...
分类:
其他好文 时间:
2021-04-19 15:16:50
阅读次数:
0
import java.io.FileNotFoundException; import java.io.IOException; import org.elasticsearch.action.get.GetRequestBuilder; import org.elasticsearch.acti ...
分类:
编程语言 时间:
2021-04-19 15:08:55
阅读次数:
0
export_excel(){ this.axios.get('downExcelView/',{responseType:'blob'}).then(res=>{ var blob = new Blob([res.data], {type: 'application/vnd.openxmlform ...
分类:
其他好文 时间:
2021-04-19 15:08:07
阅读次数:
0
public class MyInfo { public string Name { get; set; } public double Diff { get; set; } public string File { get; set; } } static void Main(string[] a ...
Redis系列(一):Redis 主从同步集群模式:https://phachon.com/redis/redis-1.html Redis系列(二):Redis 哨兵集群模式:https://phachon.com/redis/redis-2.html 以下仅为参考! https://www.cn ...
分类:
系统相关 时间:
2021-04-19 14:33:11
阅读次数:
0
前后端分离场景后端需要配置跨域,否则浏览器那端跨域请求会报错。 跨域要配置的: app.all('*', (req, res, next) => { // google需要配置,否则报错cors error res.setHeader('Access-Control-Allow-Credential ...
分类:
其他好文 时间:
2021-04-19 14:12:06
阅读次数:
0
题目 点这里看题目。 分析 直接来做这个有趣的问题似乎显得太过棘手,不妨考虑一个较弱的问题: \[ \sum_{u=1}^n s_u \] 假如当前根确定为 \(r\) ,那么就有: \[ \sum_{u=1}^ns_u=\sum_{u=1}^n(\operatorname{dist}(u,r)+1 ...
分类:
其他好文 时间:
2021-04-16 12:12:11
阅读次数:
0
1 题目详情 给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。 你可以假设数组中无重复元素。 示例 1: 输入: [1,3,5,6], 5 输出: 2 示例 2: 输入: [1,3,5,6], 2 输出: 1 示例 3: 输入: ...
分类:
其他好文 时间:
2021-04-16 12:09:24
阅读次数:
0
import org.junit.Test; public class TestMethods { @Test public void test() { System.out.println("hello world"); } } 1:首先需要导入import org.junit.test这个jar ...
分类:
编程语言 时间:
2021-04-16 12:01:06
阅读次数:
0
设置仓库 更新 apt 包索引。 $ sudo apt-get update 安装 apt 依赖包,用于通过HTTPS来获取仓库: $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent ...
分类:
系统相关 时间:
2021-04-16 11:59:52
阅读次数:
0