{"id":2039,"date":"2024-11-10T12:10:29","date_gmt":"2024-11-10T04:10:29","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2039\/"},"modified":"2024-11-10T12:10:29","modified_gmt":"2024-11-10T04:10:29","slug":"%e4%bd%bf%e7%94%a8-form-formname-submit-%e5%92%8c-selector-submit-%e5%af%bc%e5%87%ba-excel-%e6%97%b6%ef%bc%8c%e5%ae%83%e4%bb%ac%e4%b9%8b%e9%97%b4%e6%9c%89%e4%bb%80%e4%b9%88%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2039\/","title":{"rendered":"\u4f7f\u7528 form.formName.submit() \u548c selector().submit() \u5bfc\u51fa Excel \u65f6\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ec0\u4e48\u533a\u522b\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173063273268892.jpg\" class=\"aligncenter\" title=\"\u4f7f\u7528 form.formName.submit() \u548c selector().submit() \u5bfc\u51fa Excel \u65f6\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ec0\u4e48\u533a\u522b\uff1f\u63d2\u56fe\" alt=\"\u4f7f\u7528 form.formName.submit() \u548c selector().submit() \u5bfc\u51fa Excel \u65f6\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ec0\u4e48\u533a\u522b\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>form.formName.submit() \u548c selector().submit() \u7684<\/strong><\/p>\n<p>\u5bfc\u51fa Excel \u529f\u80fd\u65f6\u9047\u5230\u4e71\u7801\uff0c\u5982\u201c\u00e8\u201d\u800c\u4e0d\u662f\u201c\u00e9\u201d\uff0c\u8fd9\u662f\u56e0\u4e3a HTML \u7f16\u7801\u4e0d\u6b63\u786e\u9020\u6210\u7684\u3002\u90a3\u4e48\uff0c\u5728\u4f7f\u7528 form.formName.submit() \u548c selector().submit() \u5bfc\u51fa\u65f6\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f<\/p>\n<p><strong>\u4f7f\u7528 form.formName.submit()<\/strong><\/p>\n<ul>\n<li>\u8fd9\u79cd\u65b9\u5f0f\u4f1a\u76f4\u63a5\u63d0\u4ea4\u8868\u5355\uff0c\u8868\u5355\u4e2d\u7684\u6240\u6709\u5b57\u6bb5\u90fd\u4f1a\u88ab\u63d0\u4ea4\u3002<\/li>\n<li>\u5982\u679c\u8868\u5355\u4e2d\u5b58\u5728\u6587\u4ef6\u57df\uff0c\u5219\u6587\u4ef6\u4e5f\u4f1a\u88ab\u63d0\u4ea4\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528 selector().submit()<\/strong><\/p>\n<ul>\n<li>selector() \u6839\u636e\u9009\u62e9\u5668\u5b57\u7b26\u4e32\u9009\u62e9\u8868\u5355\u5143\u7d20\u3002<\/li>\n<li>\u63d0\u4ea4\u8868\u5355\u65f6\uff0c\u53ea\u6709\u5339\u914d\u9009\u62e9\u5668\u6761\u4ef6\u7684\u5b57\u6bb5\u4f1a\u88ab\u63d0\u4ea4\u3002<\/li>\n<li>\u5982\u679c\u8868\u5355\u4e2d\u5b58\u5728\u6587\u4ef6\u57df\uff0c\u5219\u6587\u4ef6\u4e0d\u4f1a\u88ab\u63d0\u4ea4\u3002<\/li>\n<\/ul>\n<p><strong>\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u5bfc\u51fa\u4e71\u7801\uff1f<\/strong><\/p>\n<p>\u5bfc\u51fa\u4e71\u7801\u53ef\u80fd\u662f\u7531\u4e8e\u4ee5\u4e0b\u539f\u56e0\uff1a<\/p>\n<ul>\n<li>\u8f93\u5165\u6216\u8f93\u51fa\u6570\u636e\u65f6\uff0c\u5b57\u7b26\u96c6\u8bbe\u7f6e\u4e0d\u6b63\u786e\u3002<\/li>\n<li>\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u635f\u574f\u3002<\/li>\n<li>\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u7f16\u7801\u4e0d\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<p><strong>\u5982\u4f55\u89e3\u51b3\u5bfc\u51fa\u4e71\u7801\uff1f<\/strong><\/p>\n<ul>\n<li>\u68c0\u67e5\u5b9e\u9645\u8f93\u51fa\u7684 HTML \u4e2d\u662f\u5426\u5305\u542b\u7f16\u7801\u8bf4\u660e\uff0c\u901a\u5e38\u4e3a UTF-8\u3002<\/li>\n<li>\u5bf9\u6bd4\u5ba2\u6237\u7aef\u7f16\u7801\uff0c\u786e\u4fdd\u4e0e\u670d\u52a1\u5668\u7f16\u7801\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4f7f\u7528 form.formName.submit() \u548c selector().submit() \u5bfc\u51fa Excel \u65f6\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ec0\u4e48\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>form.formName.submit() \u548c selector().submit() \u7684 \u5bfc\u51fa Excel \u529f\u80fd\u65f6\u9047\u5230\u4e71\u7801\uff0c\u5982\u201c\u00e8\u201d\u800c\u4e0d\u662f\u201c\u00e9\u201d\uff0c\u8fd9\u662f\u56e0\u4e3a HTML \u7f16\u7801\u4e0d\u6b63\u786e\u9020\u6210\u7684\u3002\u90a3\u4e48\uff0c\u5728\u4f7f\u7528 form.formName.submit() \u548c selector().submit() \u5bfc\u51fa\u65f6\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f \u4f7f\u7528 form.formName.submit() \u8fd9\u79cd\u65b9\u5f0f\u4f1a\u76f4\u63a5\u63d0\u4ea4\u8868\u5355\uff0c\u8868\u5355\u4e2d\u7684\u6240\u6709\u5b57\u6bb5\u90fd\u4f1a\u88ab\u63d0\u4ea4\u3002 \u5982\u679c\u8868\u5355\u4e2d\u5b58\u5728\u6587\u4ef6\u57df\uff0c\u5219\u6587\u4ef6\u4e5f\u4f1a\u88ab\u63d0\u4ea4\u3002 \u4f7f\u7528 selector().submit() selector() \u6839\u636e\u9009\u62e9\u5668\u5b57\u7b26\u4e32\u9009\u62e9\u8868\u5355\u5143\u7d20\u3002 \u63d0\u4ea4\u8868\u5355\u65f6\uff0c\u53ea\u6709\u5339\u914d\u9009\u62e9\u5668\u6761\u4ef6\u7684\u5b57\u6bb5\u4f1a\u88ab\u63d0\u4ea4\u3002 \u5982\u679c\u8868\u5355\u4e2d\u5b58\u5728\u6587\u4ef6\u57df\uff0c\u5219\u6587\u4ef6\u4e0d\u4f1a\u88ab\u63d0\u4ea4\u3002 \u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u5bfc\u51fa\u4e71\u7801\uff1f \u5bfc\u51fa\u4e71\u7801\u53ef\u80fd\u662f\u7531\u4e8e\u4ee5\u4e0b\u539f\u56e0\uff1a \u8f93\u5165\u6216\u8f93\u51fa\u6570\u636e\u65f6\uff0c\u5b57\u7b26\u96c6\u8bbe\u7f6e\u4e0d\u6b63\u786e\u3002 \u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u635f\u574f\u3002 \u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u7f16\u7801\u4e0d\u4e00\u81f4\u3002 \u5982\u4f55\u89e3\u51b3\u5bfc\u51fa\u4e71\u7801\uff1f \u68c0\u67e5\u5b9e\u9645\u8f93\u51fa\u7684 HTML \u4e2d\u662f\u5426\u5305\u542b\u7f16\u7801\u8bf4\u660e\uff0c\u901a\u5e38\u4e3a UTF-8\u3002 \u5bf9\u6bd4\u5ba2\u6237\u7aef\u7f16\u7801\uff0c\u786e\u4fdd\u4e0e\u670d\u52a1\u5668\u7f16\u7801\u4e00\u81f4\u3002 \u4ee5\u4e0a\u5c31\u662f\u4f7f\u7528 form.formName.submit() \u548c selector().submit() \u5bfc\u51fa Excel \u65f6\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ec0\u4e48\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2039","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2039"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2039\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}