猿问

这段代码哪里体现了点击按钮后向服务器提交数据?

<body>
        <form id="frmV" method="post" action="#">
            <div id="divtest">
                <div class="title">
                    <span class="fl">个人信息页</span> 
                    <span class="fr">
                        <input id="btnSubmit" type="submit" value="提交" />
                    </span>
                </div>
                <div class="content">
                    <span class="fl">用户名:</span><br />
                    <input id="user" name="user" type="text" /><br />
                    <span class="fl">昵称:</span><br />
                    <input id="nick" name="nick" type="text" />
                    <div class="tip"></div>
                </div>
            </div>
        </form>
        
        <script type="text/javascript">
            $(function () {
                var options = {
                    url: "http://www.imooc.com/data/form_f.php", 
                    target: ".tip"
                }
                $("#frmV").ajaxForm(options);
            });
        </script>
    </body>


绿野仙踪yy
浏览 1361回答 2
2回答

qq_哈哈_49

 $("#frmV").ajaxForm(options)并不是马上提交,而是要等 submit()事件,它只是一个准备

K丶L

点击submit提交数据
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答