一、Django中使用原生SQL from django.db import connection cursor=connection.cursor() # 插入操作 cursor.execute("insert into hello_author(name) values('钱钟书')") # 更 ...
分类:
数据库 时间:
2020-06-22 20:56:32
阅读次数:
75
#运行用户 user nobody; #启动进程,通常设置成和cpu的数量相等 worker_processes 1; #全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs ...
分类:
其他好文 时间:
2020-06-22 20:50:42
阅读次数:
50
HTML: 1 <body> 2 <p>操作错误!还有<span id="sp">5</span>秒跳转到交换机备份页面...</p> 3 <a href="#" onclick="stop()">停止</a> 4 5 <script type="text/javascript"> 6 var i= ...
分类:
Web程序 时间:
2020-06-22 19:24:51
阅读次数:
90
一、什么是 wrk 摘自官方 GitHub 上的英文介绍: 翻译一下: wrk 是一款针对 Http 协议的基准测试工具,它能够在单机多核 CPU 的条件下,使用系统自带的高性能 I/O 机制,如 epoll,kqueue 等,通过多线程和事件模式,对目标机器产生大量的负载。 PS: 其实,wrk ...
分类:
其他好文 时间:
2020-06-22 18:55:55
阅读次数:
61
testng.xml testng.xml是为了更方便的管理和执行测试用例,同时也可以结合其他工具 You can invoke TestNG in several different ways: 你可以用以下三种方式执行测试 With a testng.xml file 直接run as test ...
分类:
编程语言 时间:
2020-06-22 18:39:47
阅读次数:
160
这个函数我没试过 不知道好不好用 function htmltotxt($document){ $search = array('@<script[^>]*?>.*?</script>@si', // Strip out javascript '@<[\\/\\!]*?[^<>]*?>@si', / ...
分类:
Web程序 时间:
2020-06-22 15:44:24
阅读次数:
64
引入css 默认引入public目录 <link rel="stylesheet" href="{{URL::asset('css/xxx.css')}}"> 引入js 默认引入public目录 <script type="text/javascript" src="{{URL::asset('js ...
分类:
Web程序 时间:
2020-06-22 12:28:14
阅读次数:
76
端口范围(0-65535)2^16tcp/udp 分类 周知端口0-1023动态端口49152-65535注册端口1024-49151 探测工具 Nmap: nmap 192.168.1.1 nmap 192.168.1.1 -p 22 --script banner 返回banner nmap - ...
分类:
其他好文 时间:
2020-06-22 12:26:45
阅读次数:
61
一:vue是单文件组件导:之前注册组件有什么缺点?1-缺乏语法高亮2-格式不好整体3-没有专门的写css代码等等参考:vue=>工具=>单文件组件什么是单文件组件?后缀为.vue的文件单文件组件的三个组成部分(代码块:scaffold自动提示)template(模板结构)script组件的代码逻辑style样式注意点:单文件组件,无法直接在浏览器中使用,必须经过webpack这种打包工
分类:
其他好文 时间:
2020-06-22 09:34:36
阅读次数:
64