当前位置:网站首页>动态创建表单并提交
动态创建表单并提交
2022-06-12 08:28:00 【月来better】
动态创建一个form表单,将参数传递给后端
<button onclick="go()">点击</button>
<script>
function go() {
var form = document.createElement("form");
form.action = "https://abc.com/auth/sign";
form.method = "post";
var input = document.createElement("input");
input.type = "hidden";
input.name = "aa";
input.value = "bb";
form.appendChild(input);
document.body.appendChild(form).submit();
}
</script>
边栏推荐
- 智能制造的时代,企业如何进行数字化转型
- FDA审查人员称Moderna COVID疫苗对5岁以下儿童安全有效
- Model Trick | CVPR 2022 Oral - Stochastic Backpropagation A Memory Efficient Strategy
- 网站Colab与Kaggle
- (P36-P39)右值和右值引用、右值引用的作用以及使用、未定引用类型的推导、右值引用的传递
- MYSQL中的调用存储过程,变量的定义,
- Install iptables services and open ports
- JVM learning notes: garbage collection mechanism
- (P19-P20)委托构造函数(代理构造函数)和继承构造函数(使用using)
- 后MES系统的时代,已逐渐到来
猜你喜欢

Hands on deep learning -- discarding method and its code implementation

JVM learning notes: three local method interfaces and execution engines

Hands on deep learning -- weight decay and code implementation

MES系统质量追溯功能,到底在追什么?

Error: what if the folder cannot be deleted when it is opened in another program

Vision transformer | arXiv 2205 - TRT vit vision transformer for tensorrt

Installation series of ROS system (I): installation steps

JVM学习笔记:垃圾回收机制

vm虛擬機中使用NAT模式特別說明

(p21-p24) unified data initialization method: List initialization, initializing objects of non aggregate type with initialization list, initializer_ Use of Lisy template class
随机推荐
Hypergeometric cumulative distribution test overlap
【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C
MATLAB image processing - Otsu threshold segmentation (with code)
(P25-P26)基于非范围的for循环、基于范围的for循环需要注意的3个细节
【数据存储】浮点型数据在内存中的存储
Easyexcel exports excel tables to the browser, and exports excel through postman test [introductory case]
Project sorting of niuke.com
MYSQL中的调用存储过程,变量的定义,
What scheduling rules does the APS software have? What is the exception handling scheme?
Py&GO编程技巧篇:逻辑控制避免if else
Ankerui motor protector has the functions of overload inverse time limit, overload definite time limit, grounding, starting timeout, leakage, underload, phase failure, locked rotor, etc
Model compression | tip 2022 - Distillation position adaptation: spot adaptive knowledge distillation
(P14)overrid关键字的使用
DUF:Deep Video Super-Resolution Network Using Dynamic Upsampling Filters ... Reading notes
Hands on deep learning -- implementation of multi-layer perceptron from scratch and its concise implementation
In the era of intelligent manufacturing, how do enterprises carry out digital transformation
Prediction of COVID-19 by RNN network
Learning notes (1): live broadcast by Dr. Lu Qi - face up to challenges and grasp entrepreneurial innovation opportunities - face up to challenges and grasp entrepreneurial innovation opportunities -1
Hands on learning and deep learning -- a brief introduction to softmax regression
Principle and configuration of MPLS