摘要: 如需要存取都是字符串类型,需在连接redis是加上一个参数: decode_responses=True 阅读全文
posted @ 2020-08-13 17:26 组装梦想 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 对captcha包下的captcha.py文件做修改如下: 一、提示错误: ModuleNotFoundError: No module named 'cStringIO' 解决办法: 第9行,将’cStringIO’改为’io 二、提示错误: AttributeError: module 'str 阅读全文
posted @ 2020-08-13 13:23 组装梦想 阅读(2017) 评论(0) 推荐(0) 编辑
摘要: 一、获取cookie: 获取函数: function getCookie(name) { var r = document.cookie.match("\\b" + name + "=([^;]*)\\b"); return r ? r[1] : undefined; } 调用: getCookie 阅读全文
posted @ 2020-08-13 12:31 组装梦想 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 只需要在JS中添加一行代码(要确保页面刷新前这个代码已经被调用)即可: window.history.replaceState(null, null, window.location.href); 阅读全文
posted @ 2020-08-13 12:29 组装梦想 阅读(426) 评论(0) 推荐(0) 编辑