<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form id="f1" action="http://oldboyedu.com">
        <input type="text">
        <input type="submit" value="提交">
        <a  onclick="subMitout()">提交吧</a>
    </form>
    <script>
        function subMitout() {
            document.getElementById('f1').submit()


        }
    </script>
</body>
</html>

 

posted on 2018-07-11 19:17  python我的最爱  阅读(139)  评论(0编辑  收藏  举报