文件上传 1.前端加入表单 <form method="POST" , action = "/Upload", enctype="multipart/form-data"> <input type="file", name = "file"/><br> <input type="submit", v ...
分类:
Web程序 时间:
2021-05-24 05:55:31
阅读次数:
0
Ajax请求处理,JSON数据返回 1.前端页面添加ajax请求 这里是以POST请求发送AJAX请求 <script> $(function(){ $("#submitBtn").click(function(){ $.ajax({ "url":"/Login", "type":"POST", " ...
分类:
Web程序 时间:
2021-05-24 05:43:17
阅读次数:
0
只能输入数字和小数点的正则 <input type="text" autocomplete="off" id="price" autofocus="autofocus" onkeyup="value=value.replace(/[^\d^\.]+/g,'')"> onkeyup="value=va ...
分类:
其他好文 时间:
2021-05-24 05:16:05
阅读次数:
0
1. download allure from git 2. config path (refer to: https://www.cnblogs.com/ycyzharry/p/10887922.html,https://www.jianshu.com/p/acb1f062a925) 3. val ...
分类:
其他好文 时间:
2021-05-24 04:32:33
阅读次数:
0
netfilter 中五个勾子函数和报文流向 Netfilter在内核中选取五个位置放了五个hook(勾子) function(INPUT、OUTPUT、FORWARD、 PREROUTING、POSTROUTING),而这五个hook function向用户开放,用户可以通过一个命令工具 (ipt ...
分类:
其他好文 时间:
2021-05-24 03:22:21
阅读次数:
0
题目: http://acm.hdu.edu.cn/showproblem.php?pid=5241 题面: Sample Input 2 0 2 Ouput Case #1: 1 Case #2: 1024 题意: M会使用n种语言,M的九个朋友会的语言都是M的子集,并且给出九个朋友会的语言的关系 ...
分类:
其他好文 时间:
2021-05-24 03:13:28
阅读次数:
0
简介 参考链接 https://gamedev.stackexchange.com/questions/26974/repairing-back-facing-triangles-without-user-input 缺陷, 对于非流形的网格会失败 code #include <iostream> ...
分类:
其他好文 时间:
2021-05-24 02:58:37
阅读次数:
0
在centos中使用管道进行参数的传输 运行格式 ./c++A | python3 p.py | ./c++B python脚本中使用标准输入和输出 stdin 和 stdout,python脚本参数是传输不到./c++B可执行文件的。 python 脚本中要使用 while True: line= ...
分类:
编程语言 时间:
2021-05-24 01:17:11
阅读次数:
0
pytest参数化与数据驱动实现—— 1. 使用@pytest.mark.parametrize进行参数化和数据驱动 import pytest @pytest.mark.parametrize("test_input, expected", [('3+5', 8), ('1+5', 6), ('3 ...
分类:
其他好文 时间:
2021-05-24 00:42:51
阅读次数:
0
<script>$(document).ready(function(){ $("input:submit").click(function(){ $.ajax({ type: "POST", url: "Ajax", contentType: 'application/x-www-form-url ...
分类:
Web程序 时间:
2021-05-24 00:25:30
阅读次数:
0