摘要: 官网:http://anyproxy.io/ 安装好node环境后,安装anyproxy,在命令行中运行 sudo npm install -g anyproxy 要代理https,还需生成CA证书并添加信任 anyproxy-ca detecting CA status... AnyProxy C 阅读全文
posted @ 2020-10-30 15:06 Virya 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 详细文档:https://mitmproxy.readthedocs.io/en/v2.0.2/mitmdump.html 安装: sudo pip3 install mitmproxy 自定义解析规则 #!/usr/bin/python3 # -*- coding:UTF-8 -*- # mitm 阅读全文
posted @ 2020-10-30 09:55 Virya 阅读(800) 评论(0) 推荐(0) 编辑
摘要: JavaScript Array map() 方法 参考: https://www.runoob.com/jsref/jsref-map.html map() 方法返回一个新数组,数组中的元素为原始数组元素调用函数处理后的值。 map() 方法按照原始数组元素顺序依次处理元素。 注意: map() 阅读全文
posted @ 2020-10-26 16:03 Virya 阅读(2012) 评论(0) 推荐(0) 编辑
摘要: 渐变色 itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#FFF0F5' //浅色 }, { offset: 1, color: '#FFB6C1' 阅读全文
posted @ 2020-10-26 16:00 Virya 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: 原文:https://blog.csdn.net/qq_38933412/article/details/82879127 案例:本例是在vue中格式化日期 1,在main.js中引入moment import moment from 'moment'; import 'moment/locale/ 阅读全文
posted @ 2020-10-26 14:23 Virya 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/u014471623/article/details/77991363 原因是:The code above is ok. You can mix require and export. You can‘t mix import and module 阅读全文
posted @ 2020-10-26 09:30 Virya 阅读(837) 评论(0) 推荐(0) 编辑
摘要: a标签打开新页面时需要添加 rel="noopener noreferrer" 否则,在新打开的页面(http://www.baidu.com)中可以通过 window.opener 获取到源页面的部分控制权,即使新打开的页面是跨域的也照样可以(例如 location 就不存在跨域问题)。 在 Ch 阅读全文
posted @ 2020-10-21 11:31 Virya 阅读(2302) 评论(0) 推荐(1) 编辑
摘要: 评分组件在el-table展示时的使用 大于0分时展示,为0时显示无评分 <el-table-column label="评分" prop="score" width="200"> <template slot-scope="{row}"> <el-rate v-if="row.score > 0" 阅读全文
posted @ 2020-10-21 10:13 Virya 阅读(4138) 评论(0) 推荐(0) 编辑
摘要: 方法一:修改数据库字符集 将数据库中表的字符集改为 utf8mb4 排序规则改为 utf8mb4_general_ci 数据库连接中的字符集也要修改为 utf8mb4: mysqldb = pymysql.connect(host="x.x.x.x", port=3306, user="user", 阅读全文
posted @ 2020-10-16 12:15 Virya 阅读(2435) 评论(0) 推荐(0) 编辑
摘要: # 常用datetime格式化 2020-10-15 11:47:09 d3_str = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") 批量插入 import pymysql def insert_to_mysql(to_db_list) 阅读全文
posted @ 2020-10-15 17:47 Virya 阅读(206) 评论(0) 推荐(0) 编辑