05 2020 档案

摘要:@csrf_exempt(免除csrf验证) from django.views.decorators.csrf import csrf_exempt @csrf_exempt def index(request): if request.method == 'GET': return HttpRe 阅读全文
posted @ 2020-05-28 17:09 hanfe1 阅读(112) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_30501975/article/details/80423547?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase 阅读全文
posted @ 2020-05-28 10:30 hanfe1 阅读(758) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/volitationlong/article/details/81741754 阅读全文
posted @ 2020-05-27 17:51 hanfe1 阅读(130) 评论(0) 推荐(0) 编辑
摘要:在前端开发的过程中,特别是数据表格的处理,我们经常碰到checkbox全选与取消以及动态的根据子类的选中状态确定全选checkbox是否“checked” 全选与取消全选 <html> <body> <table border="1"> <tr> <th><input type="checkbox" 阅读全文
posted @ 2020-05-27 16:17 hanfe1 阅读(1991) 评论(1) 推荐(0) 编辑
摘要:官方地址: https://layer.layui.com/ 案例: jQuery - Ajax请求时自动显示Loading效果(设置全局加载框) https://www.hangge.com/blog/cache/detail_2057.html 下面整理了大佬的一些笔记: layer - 简单好 阅读全文
posted @ 2020-05-26 16:37 hanfe1 阅读(341) 评论(0) 推荐(0) 编辑
摘要:python django models中自定义用户认证 #(一) #简单的用户验证 # from django.contrib.auth.models import User # class UserProfile(models.Model):s # '''堡垒机账户''' # user = mo 阅读全文
posted @ 2020-05-26 14:39 hanfe1 阅读(364) 评论(0) 推荐(0) 编辑
摘要:消息队列之真知灼见 https://www.cnblogs.com/pyedu/p/11866829.html RPC的入门应用 https://www.cnblogs.com/pyedu/p/12196027.html 牛哄哄的celery https://www.cnblogs.com/pyed 阅读全文
posted @ 2020-05-25 17:32 hanfe1 阅读(176) 评论(0) 推荐(0) 编辑
摘要:jQuery中的prop和attr区别 最近在做一个项目用jq时发现一个问题 在谷歌中可以正常出效果 但是在火狐中就是不行 就是这个prop和attr 之前用的是attr方法 但是在火狐中不出效果 于是特意看了两者的区别 主要区别就是: prop 对于HTML元素本身就带有的固有属性 attr 对于 阅读全文
posted @ 2020-05-25 12:41 hanfe1 阅读(115) 评论(0) 推荐(0) 编辑
摘要:如果是button请将button的类型改为type="button" 因为浏览器会认为button按钮默认类型是submit 会提交数据从而导致整个页面刷新 在ie浏览器中按钮的type默认是button 在其他浏览器(如火狐,chrome)则是submit 加上type="button"完美解决 阅读全文
posted @ 2020-05-22 14:06 hanfe1 阅读(563) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_38892710/article/details/100522122 https://img blog.csdnimg.cn/20190903161727545.gif 阅读全文
posted @ 2020-05-18 11:16 hanfe1 阅读(179) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_38923792/article/details/95510868 阅读全文
posted @ 2020-05-18 10:23 hanfe1 阅读(204) 评论(0) 推荐(0) 编辑
摘要:pre 元素可定来义预格式化的文本自。被包围在 pre 元素中的文本通常会百保留空格和换行符。而文本也会呈现为等宽字体度。 在前端展示数据时,可保留原数据格式 阅读全文
posted @ 2020-05-16 17:23 hanfe1 阅读(1545) 评论(0) 推荐(0) 编辑
摘要:当我们用javascript写ajax程序写得很“开心”的时候,突然有人告诉你有一种东西叫jquery,它会告诉你不直接和HttpRequest是多么的快乐,同时你再也不需要再烦恼纠结的ajax乱码问题,更幸福的是你的js代码将大大地简化,看完本文,你会发现,ajax,简单的来讲就是一句话的事情。 阅读全文
posted @ 2020-05-16 16:48 hanfe1 阅读(177) 评论(0) 推荐(0) 编辑
摘要:sshpass:用于非交互的ssh 密码验证 使用 p 参数指定明文密码,然后直接登录远程服务器。 它支持密码从命令行,文件,环境变量中读取 1、从命令行方式传递密码 sshpass p user_password ssh user_name@192.168.1.2 【登录远程机器】 sshpass 阅读全文
posted @ 2020-05-13 22:03 hanfe1 阅读(639) 评论(0) 推荐(0) 编辑
摘要:python commands模块在python3.x被subprocess取代 run: 开启一个进程 Python 3.5中新增的函数。执行指定的命令,等待命令执行完成后返回一个包含执行结果的CompletedProcess类的实例。 call()方法能便捷的调用一个程序,并得到执行的返回码。该 阅读全文
posted @ 2020-05-13 22:01 hanfe1 阅读(3415) 评论(0) 推荐(0) 编辑
摘要:可监控系统进程: 参考:https://www.jianshu.com/p/33521124bdf2 阅读全文
posted @ 2020-05-13 21:42 hanfe1 阅读(120) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/java_xinshou1/article/details/100010099 阅读全文
posted @ 2020-05-13 21:25 hanfe1 阅读(168) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_39198406/article/details/78845122 阅读全文
posted @ 2020-05-10 12:00 hanfe1 阅读(132) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/3c54b3327d5c 阅读全文
posted @ 2020-05-10 11:50 hanfe1 阅读(73) 评论(0) 推荐(0) 编辑
摘要:转自: https://blog.csdn.net/u010365819/article/details/84338332 https://blog.csdn.net/u013034226/article/details/84545768?utm_medium=distribute.pc_relev 阅读全文
posted @ 2020-05-06 17:18 hanfe1 阅读(186) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示