##引言 这两天写项目碰到了使用nginx作为图片服务器及简单的地址重写 ###Nginx作为图片服务器 server { listen 80; server_name image.leyou.com; proxy_set_header X-Forwarded-Host $host; proxy_s ...
分类:
其他好文 时间:
2020-11-21 12:27:00
阅读次数:
7
方法一: 反转之前的数组: // 1.生成二维数组 for (let i = 0; i < typeList.length; i++) { let tempList = []; let valueList = typeList[i].valueList; for (let j = 0; j < va ...
分类:
其他好文 时间:
2020-11-21 12:07:34
阅读次数:
3
1.maven依赖 <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version> </dependency> 2.配置 import com.g ...
分类:
编程语言 时间:
2020-11-21 12:05:33
阅读次数:
6
:: %~1 - expands %1 removing any surrounding quotes ("):: %~f1 - expands %1 to a fully qualified path name:: %~d1 - expands %1 to a drive letter only: ...
分类:
其他好文 时间:
2020-11-21 12:05:00
阅读次数:
6
glc-test:PRIMARY> db.serverCmdLineOpts() { "argv" : [ "/home/work/mongodb/4.0.17/bin/mongod", "--config", "/home/work/mongodb/mongo_28042/etc/mongodb. ...
分类:
数据库 时间:
2020-11-21 12:03:26
阅读次数:
12
JavaScript 三种信息输出方式: 1)alert():警示框弹出消息 2)document.write():页面输出信息 3)console.log():浏览器控制台输出信息 html代码: <!DOCTYPE html> <html lang="en"> <head> <meta char ...
分类:
编程语言 时间:
2020-11-21 11:47:04
阅读次数:
5
起因 今天用ubuntu 终端运行py文件报了个错,找不到模块? 我切换回pycharm中运行,运行一切正常 解决 在报错模块中,插入绝对路径 import sys sys.path.append('/opt/MVS/Samples/64/Python/GrabImage/') 参考: https: ...
分类:
其他好文 时间:
2020-11-20 12:22:21
阅读次数:
23
# -*- coding: utf-8 -*-import cv2import jsonimport numpy as npbase_path = "D:/Personal_Task/A3_ADASProject/Traffic_Line/dataset/train_set/"targetpath ...
分类:
Web程序 时间:
2020-11-20 12:21:54
阅读次数:
33
输入命令解决: export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin ...
分类:
其他好文 时间:
2020-11-20 12:20:04
阅读次数:
20
// 保存 saveData() { teacher.save(this.teacher).then(response => { return this.$message({ type: 'success', message: '保存成功!' }) }).then(resposne => { // ...
分类:
其他好文 时间:
2020-11-20 12:19:49
阅读次数:
19