摘要: 方法一: function CopyAddress(btn) { var AddressStr=" "; var $btn = $(btn); var tr = $btn.parent().parent(); var trs = tr.siblings(); var tr1 = $(trs.get( 阅读全文
posted @ 2020-08-20 10:37 罕 阅读(303) 评论(0) 推荐(0) 编辑
摘要: Base64文件数据和文件字节流数据,保存方式异曲同工,如下 Base64文件数据转PDF /// <summary> /// Base64 转PDF /// </summary> /// <param name="wayBillNo">单号,或相对唯一的值</param> /// <param n 阅读全文
posted @ 2020-08-20 10:32 罕 阅读(2432) 评论(0) 推荐(0) 编辑
摘要: FileZilla Server安装好之后,尝试用用本地电脑fileZilla client登录,提示以下错误: 状态: 连接建立,等待欢迎消息…… 状态: 不安全的服务器,不支持 FTP over TLS。 状态: 已登录 状态: 读取目录列表…… 状态: 服务器发回了不可路由的地址。 被动模式失 阅读全文
posted @ 2020-03-13 23:51 罕 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-13 22:19 罕 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 我的服务器是centos系统 1.进入你买的服务器,找到实例 2.进入实例后,点击远程连接,进入如linux界面(如果没有密码,进行第3部) 3.没有密码,点击上图的更多,重置实例密码 4,进行第2部,进入linux黑窗口界面,进行操作 阅读全文
posted @ 2020-03-13 22:15 罕 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 在models.py 文件中 User用户表中 # 禁止读取密码 @property def password(self): # 原理:读取返回参数 # return self.password_hash # 实际不可读 raise AttributeError('password 是不可读属性') 阅读全文
posted @ 2020-03-01 13:40 罕 阅读(1548) 评论(0) 推荐(0) 编辑
摘要: 详细参考:https://blog.csdn.net/haiyanggeng/article/details/81229546 阅读全文
posted @ 2020-01-25 21:05 罕 阅读(3505) 评论(0) 推荐(0) 编辑
摘要: 模态框 html 模态框弹出关键参数: data-toggle="modal" data-target="#模态框ID" <%-- 模态框按钮--%> <button id="Buttonadd" type="button" class="btn btn-rounded btn-primary" d 阅读全文
posted @ 2019-12-26 14:27 罕 阅读(621) 评论(0) 推荐(0) 编辑
摘要: mixins 中RetrieveModelMixin 获取当个实例 其中的主键pk获取,可以通过lookup_field 如:要换成用username字段进行查询 注:替换的字段要有唯一约束 lookup_field='username' 例: class UserDetialViewSet(mix 阅读全文
posted @ 2019-12-13 11:15 罕 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: 报错信息: AttributeError: 'dict' object has no attribute 'getlist' 解决: 虽然是小毛病,不得不说还是自己太粗心大意了。 阅读全文
posted @ 2019-11-26 15:31 罕 阅读(1504) 评论(0) 推荐(0) 编辑