<html> <head> <script> $(document).on('ready', function () { $('#testForm).on('submit', function () { alert('submit!'); }); }); </script> </head> <body> <form id="testForm"> ... </form> </body>
#testForm缺少了一个引号
👍
Sign in to make a reply
随意评一评
#testForm缺少了一个引号