📅  最后修改于: 2022-03-11 15:01:51.762000             🧑  作者: Mango
function post_to_url(path, method) {
method = method || "post";
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
document.body.appendChild(form);
form.submit();
}