jquery.form.js is a form plug-in that supports ajax form submission and ajax file upload. Its reference method is such as "< /script>". </p></blockquote> <p><img src="https://img.php.cn/upload/article/202111/11/2021111110482162000.jpg" alt="What is jquery.form.js" ></p> <p>The operating environment of this article: windows7 system, jquery1.6.2 version, DELL G3 computer</p> <p><strong>#What is jquery.form.js? </strong></p> <p>jQuery.form.js usage</p> <p>jQuery.form.js is a form plug-in that supports ajax form submission and ajax file upload. </p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false"><!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <script src="~/Scripts/jquery-1.6.2.js"> 提交1 提交2 $(function () { $("#ajaxForm").ajaxForm(function () { alert("提交成功1"); }); $("#ajaxForm").submit(function () { $(this).ajaxSubmit(function () { alert("提交成功1"); }); return false; }); $("#btnButton").click(function () { $("#ajaxForm").ajaxSubmit(function () { alert("提交成功2"); }); return false; }); });