{"id":52904,"date":"2024-12-03T08:26:23","date_gmt":"2024-12-03T00:26:23","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52904\/"},"modified":"2024-12-03T08:26:23","modified_gmt":"2024-12-03T00:26:23","slug":"%e7%bd%91%e9%a1%b5%e5%ae%89%e5%85%a8%ef%bc%9a%e5%a6%82%e4%bd%95%e9%9a%90%e8%97%8furl%e4%b8%ad%e7%9a%84%e5%af%86%e7%a0%81%e4%bf%a1%e6%81%af%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52904\/","title":{"rendered":"\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f<\/h1>\n<p>\u6b22\u8fce\u5404\u4f4d\u5c0f\u4f19\u4f34\u6765\u5230\u7c73\u4e91\uff0c\u76f8\u805a\u4e8e\u6b64\u90fd\u662f\u7f18\u54c8\u54c8\u54c8\uff01\u4eca\u5929\u6211\u7ed9\u5927\u5bb6\u5e26\u6765<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f\u300b<\/span>\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u8bb2\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\uff0c\u5982\u679c\u4f60\u5bf9<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u76f8\u5173\u7684\u77e5\u8bc6\u975e\u5e38\u611f\u5174\u8da3\u6216\u8005\u6b63\u5728\u81ea\u5b66\uff0c\u90fd\u53ef\u4ee5\u5173\u6ce8\u6211\uff0c\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\uff01\u5f53\u7136\uff0c\u6709\u4ec0\u4e48\u5efa\u8bae\u4e5f\u6b22\u8fce\u5728\u8bc4\u8bba\u7559\u8a00\u63d0\u51fa\uff01\u4e00\u8d77\u5b66\u4e60\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241124\/17324366766742e2c496126.jpg\" class=\"aligncenter\" title=\"\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f\u63d2\u56fe\" alt=\"\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u9690\u85cfurl\u53c2\u6570\u4f20\u9012\u7684\u5bc6\u7801<\/strong><\/p>\n<p>\u5728\u7f16\u5199\u7f51\u9875\u65f6\uff0c\u4f20\u9012\u5bc6\u7801\u7b49\u654f\u611f\u4fe1\u606f\u65f6\uff0c\u5c06\u5b83\u4eec\u76f4\u63a5\u4f5c\u4e3aurl\u53c2\u6570\u7684\u505a\u6cd5\u662f\u4e0d\u5b89\u5168\u7684\uff0c\u5bb9\u6613\u88ab\u4ed6\u4eba\u7a83\u53d6\u3002\u63a8\u8350\u4f7f\u7528ajax post\u8bf7\u6c42\uff0c\u5c06\u654f\u611f\u4fe1\u606f\u9690\u85cf\u5728\u8bf7\u6c42\u6b63\u6587\u4e2d\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528jquery\u63d0\u4f9b\u7684ajax post\u8bf7\u6c42\u793a\u4f8b\uff0c\u9690\u85cf\u5bc6\u7801\u4fe1\u606f\uff1a<\/p>\n<pre>var password = \"123\";\n\n$.ajax({\n  url: \"http:\/\/localhost:8080\/xxx.action\",\n  data: {\n    \"password\": password\n  },\n  type: \"post\",\n  success: function(data) {\n    if (data &gt; 0) {\n      alert(msg + \"OK\uff01\");\n    } else {\n      alert(\"\u64cd\u4f5c\u5931\u8d25\");\n    }\n  },\n  error: function() {\n    alert(\"\u8bf7\u6c42\u51fa\u9519\");\n  }\n});<\/pre>\n<p>\u672c\u7bc7\u5173\u4e8e\u300a\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f\u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   \u5982\u4f55\u4f7f\u7528 vue-material-year-calendar\u6253\u9020\u6240\u6709\u6708\u65e5\u663e\u793a\u7684\u65e5\u5386\uff0c\u5e76\u81ea\u5b9a\u4e49\u5916\u89c2\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f \u6b22\u8fce\u5404\u4f4d\u5c0f\u4f19\u4f34\u6765\u5230\u7c73\u4e91\uff0c\u76f8\u805a\u4e8e\u6b64\u90fd\u662f\u7f18\u54c8\u54c8\u54c8\uff01\u4eca\u5929\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u300a\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f\u300b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u8bb2\u5230\u7b49\u7b49\u77e5\u8bc6\uff0c\u5982\u679c\u4f60\u5bf9\u6587\u7ae0\u76f8\u5173\u7684\u77e5\u8bc6\u975e\u5e38\u611f\u5174\u8da3\u6216\u8005\u6b63\u5728\u81ea\u5b66\uff0c\u90fd\u53ef\u4ee5\u5173\u6ce8\u6211\uff0c\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\uff01\u5f53\u7136\uff0c\u6709\u4ec0\u4e48\u5efa\u8bae\u4e5f\u6b22\u8fce\u5728\u8bc4\u8bba\u7559\u8a00\u63d0\u51fa\uff01\u4e00\u8d77\u5b66\u4e60\uff01 \u9690\u85cfurl\u53c2\u6570\u4f20\u9012\u7684\u5bc6\u7801 \u5728\u7f16\u5199\u7f51\u9875\u65f6\uff0c\u4f20\u9012\u5bc6\u7801\u7b49\u654f\u611f\u4fe1\u606f\u65f6\uff0c\u5c06\u5b83\u4eec\u76f4\u63a5\u4f5c\u4e3aurl\u53c2\u6570\u7684\u505a\u6cd5\u662f\u4e0d\u5b89\u5168\u7684\uff0c\u5bb9\u6613\u88ab\u4ed6\u4eba\u7a83\u53d6\u3002\u63a8\u8350\u4f7f\u7528ajax post\u8bf7\u6c42\uff0c\u5c06\u654f\u611f\u4fe1\u606f\u9690\u85cf\u5728\u8bf7\u6c42\u6b63\u6587\u4e2d\u3002 \u89e3\u51b3\u65b9\u6848 \u4ee5\u4e0b\u4f7f\u7528jquery\u63d0\u4f9b\u7684ajax post\u8bf7\u6c42\u793a\u4f8b\uff0c\u9690\u85cf\u5bc6\u7801\u4fe1\u606f\uff1a var password = &#8220;123&#8221;; $.ajax({ url: &#8220;http:\/\/localhost:8080\/xxx.action&#8221;, data: { &#8220;password&#8221;: password }, type: &#8220;post&#8221;, success: function(data) { if (data &gt; 0) { alert(msg + &#8220;OK\uff01&#8221;); } else { alert(&#8220;\u64cd\u4f5c\u5931\u8d25&#8221;); } }, error: function() { alert(&#8220;\u8bf7\u6c42\u51fa\u9519&#8221;); } }); \u672c\u7bc7\u5173\u4e8e\u300a\u7f51\u9875\u5b89\u5168\uff1a\u5982\u4f55\u9690\u85cfURL\u4e2d\u7684\u5bc6\u7801\u4fe1\u606f\uff1f\u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01 \u5982\u4f55\u4f7f\u7528 vue-material-year-calendar\u6253\u9020\u6240\u6709\u6708\u65e5\u663e\u793a\u7684\u65e5\u5386\uff0c\u5e76\u81ea\u5b9a\u4e49\u5916\u89c2\uff1f<\/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-52904","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52904","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=52904"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52904\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}