首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
jQuery片段 - 表单action的更改和提交
jQuery片段 - 表单action的更改和提交
mac
2022-07-05
20
//点击表单“提交”按钮
$(
"#submitBut").bind(
"click",
function() {
var url =
"...";
//更改form的action
$(
"#submitForm").attr(
"action", url);
//触发submit事件,提交表单
$(
"#submitForm").submit();
});
转载于:https://www.cnblogs.com/Better-Me/p/4480020.html
相关资源:jQuery详细教程
转载请注明原文地址: https://mac.8miu.com/read-408500.html
最新回复
(
0
)