Hi,歡迎訪問前端老白
<button name="submit" type="submit" formaction="submit.php">提交</button>
<form action="submit.php" method="post"> <button name="submit" type="submit">提交</button> </form>
<button onclick="submitForm()">提交</button> <script> function submitForm() { var form = document.createElement("form"); form.setAttribute("method", "post"); form.setAttribute("action", "submit.php"); form.style.display = "none"; document.body.appendChild(form); form.submit(); } </script>
老白網絡 (http://52shenghuonet.cn/) 前端 后端 zblog主題.網站地圖xml