{"id":311071,"date":"2024-05-20T22:05:57","date_gmt":"2024-05-20T14:05:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/311071.html"},"modified":"2024-05-20T22:06:27","modified_gmt":"2024-05-20T14:06:27","slug":"jquery-%e4%b8%ad%e6%80%8e%e4%b9%88%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aa%e7%a1%ae%e8%ae%a4%e5%af%b9%e8%af%9d%e6%a1%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/311071.html","title":{"rendered":"jquery \u4e2d\u600e\u4e48\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26231716\/6d779929-99ee-4a67-939f-a726a9eb7a19.webp\" alt=\"jquery \u4e2d\u600e\u4e48\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\" \/><\/p>\n<p><p>\u5728jQuery\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\u6d89\u53ca\u51e0\u4e2a\u6838\u5fc3\u6280\u672f\u70b9\uff1a<strong>\u5229\u7528jQuery UI\u5e93\u7684Dialog\u5c0f\u90e8\u4ef6\u3001\u8c03\u7528dialog()\u65b9\u6cd5\u3001\u5b9a\u5236\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u6309\u94ae\u53ca\u4e8b\u4ef6\u5904\u7406\u903b\u8f91<\/strong>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u89e3\u8bf4\u5982\u4f55\u57fa\u4e8ejQuery UI\u5e93\u6765\u521b\u5efa\u548c\u5b9a\u5236\u4e00\u4e2a\u7b80\u6d01\u800c\u5f3a\u5927\u7684\u786e\u8ba4\u5bf9\u8bdd\u6846\u3002<\/p>\n<\/p>\n<p><p>\u5728\u4f17\u591a\u6280\u672f\u70b9\u4e2d\uff0c<strong>\u5229\u7528jQuery UI\u5e93\u7684Dialog\u5c0f\u90e8\u4ef6<\/strong>\u5c24\u4e3a\u91cd\u8981\u3002\u5b83\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u800c\u7075\u6d3b\u7684\u5bf9\u8bdd\u6846\u529f\u80fd\uff0c\u8fd8\u53ef\u4ee5\u8f7b\u677e\u5730\u901a\u8fc7\u53c2\u6570\u548cCSS\u6765\u5b9a\u5236\u5bf9\u8bdd\u6846\u7684\u5916\u89c2\u548c\u884c\u4e3a\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684API\u8c03\u7528\u521b\u5efa\u51fa\u65e2\u7f8e\u89c2\u53c8\u5b9e\u7528\u7684\u786e\u8ba4\u5bf9\u8bdd\u6846\uff0c\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5f15\u5165\u6240\u9700\u5e93\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u521b\u5efa\u786e\u8ba4\u5bf9\u8bdd\u6846\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u786e\u4fdd\u9875\u9762\u4e2d\u5df2\u7ecf\u6b63\u786e\u5f15\u5165\u4e86jQuery\u5e93\u548cjQuery UI\u5e93\u7684\u76f8\u5173\u6587\u4ef6\uff0c\u5305\u62ecCSS\u6837\u5f0f\u6587\u4ef6\u3002\u60a8\u53ef\u4ee5\u4ecejQuery\u5b98\u7f51\u6216\u8005\u901a\u8fc7CDN\u670d\u52a1\u5f15\u5165\u8fd9\u4e9b\u8d44\u6e90\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;head&gt;<\/p>\n<p>  &lt;link rel=&quot;stylesheet&quot; href=&quot;\/\/code.jquery.com\/ui\/1.12.1\/themes\/base\/jquery-ui.css&quot;&gt;<\/p>\n<p>  &lt;script src=&quot;\/\/code.jquery.com\/jquery-3.6.0.min.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>  &lt;script src=&quot;\/\/code.jquery.com\/ui\/1.12.1\/jquery-ui.min.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e3a\u540e\u7eed\u521b\u5efa\u5bf9\u8bdd\u6846\u63d0\u4f9b\u4e86\u57fa\u7840\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u521b\u5efa\u57fa\u7840\u5bf9\u8bdd\u6846<\/h3>\n<\/p>\n<p><p>\u8981\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\uff0c\u9996\u5148\u8981\u5728HTML\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u5bf9\u8bdd\u6846\u7684\u5bb9\u5668\u5143\u7d20\u3002\u8fd9\u4e2a\u5bb9\u5668\u5c06\u4f5c\u4e3a\u5bf9\u8bdd\u6846\u7684\u5185\u5bb9\u90e8\u5206\u88abjQuery UI Dialog\u5c0f\u90e8\u4ef6\u521d\u59cb\u5316\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;div id=&quot;confirmation-dialog&quot; title=&quot;\u786e\u8ba4\u64cd\u4f5c&quot;&gt;<\/p>\n<p>  &lt;p&gt;\u8fd9\u662f\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\u793a\u4f8b\uff0c\u70b9\u51fb\u786e\u8ba4\u7ee7\u7eed\u3002&lt;\/p&gt;<\/p>\n<p>&lt;\/div&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728JavaScript\u4e2d\uff0c\u4f7f\u7528jQuery\u7684<code>$(selector).dialog(options);<\/code>\u8bed\u6cd5\u6765\u6307\u5b9a\u8fd9\u4e2a\u5bb9\u5668\u8f6c\u53d8\u4e3a\u5bf9\u8bdd\u6846\uff0c\u5e76\u5b9a\u5236\u5176\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u8c03\u7528dialog()\u65b9\u6cd5\u548c\u81ea\u5b9a\u4e49<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7\u8c03\u7528<code>dialog()<\/code>\u65b9\u6cd5\u5e76\u4f20\u9012\u76f8\u5173\u7684\u9009\u9879\u6765\u521d\u59cb\u5316\u5bf9\u8bdd\u6846\u3002\u5728\u8fd9\u4e00\u6b65\uff0c\u53ef\u4ee5\u5b9a\u4e49\u5bf9\u8bdd\u6846\u7684\u6807\u9898\u3001\u5c3a\u5bf8\u3001\u6309\u94ae\u4ee5\u53ca\u6309\u94ae\u7684\u70b9\u51fb\u4e8b\u4ef6\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(&quot;#confirmation-dialog&quot;).dialog({<\/p>\n<p>  autoOpen: false, \/\/ \u521d\u59cb\u65f6\u4e0d\u663e\u793a\u5bf9\u8bdd\u6846<\/p>\n<p>  modal: true, \/\/ \u6a21\u6001\u5bf9\u8bdd\u6846<\/p>\n<p>  buttons: {<\/p>\n<p>    &quot;\u786e\u8ba4&quot;: function() {<\/p>\n<p>      \/\/ \u786e\u8ba4\u6309\u94ae\u7684\u70b9\u51fb\u4e8b\u4ef6\u5904\u7406\u903b\u8f91<\/p>\n<p>      $(this).dialog(&quot;close&quot;);<\/p>\n<p>    },<\/p>\n<p>    &quot;\u53d6\u6d88&quot;: function() {<\/p>\n<p>      \/\/ \u53d6\u6d88\u6309\u94ae\u7684\u70b9\u51fb\u4e8b\u4ef6\u5904\u7406\u903b\u8f91<\/p>\n<p>      $(this).dialog(&quot;close&quot;);<\/p>\n<p>    }<\/p>\n<p>  }<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u6a21\u6001\u7684\u5bf9\u8bdd\u6846\uff0c\u5e76\u5b9a\u4e49\u4e86&quot;\u786e\u8ba4&quot;\u548c&quot;\u53d6\u6d88&quot;\u4e24\u4e2a\u6309\u94ae\u53ca\u5176\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002\u5bf9\u8bdd\u6846\u9ed8\u8ba4\u662f\u9690\u85cf\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u811a\u672c\u63a7\u5236\u5176\u663e\u793a\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u663e\u793a\u5bf9\u8bdd\u6846<\/h3>\n<\/p>\n<p><p>\u8981\u663e\u793a\u5bf9\u8bdd\u6846\uff0c\u53ef\u4ee5\u5728\u9002\u5f53\u7684\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u4e2d\u8c03\u7528<code>$(&quot;#confirmation-dialog&quot;).dialog(&quot;open&quot;);<\/code>\uff0c\u4f8b\u5982\u5728\u70b9\u51fb\u6309\u94ae\u65f6\u663e\u793a\u786e\u8ba4\u5bf9\u8bdd\u6846\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(&quot;#open-dialog&quot;).click(function() {<\/p>\n<p>  $(&quot;#confirmation-dialog&quot;).dialog(&quot;open&quot;);<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f18\u5316\u4e0e\u5b9a\u5236\u5316<\/h3>\n<\/p>\n<p><p>\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u521b\u5efa\u57fa\u7840\u5c31\u662f\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4f46jQuery UI\u5bf9\u8bdd\u6846\u7684\u529f\u80fd\u8fdc\u4e0d\u6b62\u5982\u6b64\u3002\u901a\u8fc7\u6df1\u5165\u63a2\u7d22API\u6587\u6863\uff0c\u60a8\u53ef\u4ee5\u627e\u5230\u66f4\u591a\u7684\u53c2\u6570\u548c\u65b9\u6cd5\u6765\u5b9a\u5236\u5bf9\u8bdd\u6846\uff0c\u4f8b\u5982\u8bbe\u7f6e\u5bf9\u8bdd\u6846\u7684\u4f4d\u7f6e\u3001\u52a8\u753b\u6548\u679c\u3001\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6309\u94ae\u7684\u56fe\u6807\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u9664\u6b64\u4e4b\u5916\uff0c\u901a\u8fc7\u7f16\u5199CSS\u6837\u5f0f\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5b9a\u5236\u5bf9\u8bdd\u6846\u7684\u5916\u89c2\u3002jQuery UI\u63d0\u4f9b\u4e86\u4e00\u5957\u7075\u6d3b\u7684CSS\u6846\u67b6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u76f8\u5e94\u7684\u7c7b\u6765\u8c03\u6574\u5bf9\u8bdd\u6846\u7ec4\u4ef6\u7684\u89c6\u89c9\u98ce\u683c\u3002<\/p>\n<\/p>\n<p><p>\u5728\u521b\u5efa\u5f3a\u5927\u4e14\u7528\u6237\u53cb\u597d\u7684\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u8fc7\u7a0b\u4e2d\uff0c<strong>\u6df1\u5165\u7406\u89e3jQuery UI Dialog\u5c0f\u90e8\u4ef6\u7684\u5404\u9879\u914d\u7f6e\u548c\u65b9\u6cd5\u662f\u5173\u952e<\/strong>\u3002\u901a\u8fc7\u5408\u7406\u7684\u8bbe\u8ba1\u548c\u5b9a\u5236\uff0c\u53ef\u4ee5\u5728Web\u5e94\u7528\u4e2d\u5b9e\u73b0\u6709\u6548\u7684\u7528\u6237\u4ea4\u4e92\u548c\u786e\u8ba4\u673a\u5236\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5728jQuery\u4e2d\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\uff1f<\/strong><br \/>\n\u5728jQuery\u4e2d\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\u975e\u5e38\u7b80\u5355\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>confirm()<\/code>\u51fd\u6570\u6765\u5f39\u51fa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\uff0c\u5e76\u6839\u636e\u7528\u6237\u7684\u9009\u62e9\u8fd4\u56de\u4e00\u4e2a\u5e03\u5c14\u503c\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5728\u6309\u94ae\u7684\u70b9\u51fb\u4e8b\u4ef6\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\uff1a<\/p>\n<pre><code class=\"language-javascript\">$(&#039;button&#039;).click(function () {\n   if (confirm(&#039;\u786e\u8ba4\u5220\u9664\u5417?&#039;)) {\n      \/\/ \u7528\u6237\u70b9\u51fb\u4e86\u786e\u8ba4\u6309\u94ae\n      \/\/ \u5728\u8fd9\u91cc\u6267\u884c\u5220\u9664\u64cd\u4f5c\n   } else {\n      \/\/ \u7528\u6237\u70b9\u51fb\u4e86\u53d6\u6d88\u6309\u94ae\n      \/\/ \u6267\u884c\u53d6\u6d88\u64cd\u4f5c\n   }\n});\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u5f53\u7528\u6237\u70b9\u51fb\u6309\u94ae\u65f6\uff0c\u4f1a\u5f39\u51fa\u4e00\u4e2a\u5305\u542b\u201c\u786e\u8ba4\u5220\u9664\u5417\uff1f\u201d\u6d88\u606f\u7684\u5bf9\u8bdd\u6846\u3002\u5982\u679c\u7528\u6237\u70b9\u51fb\u4e86\u786e\u8ba4\u6309\u94ae\uff0c\u5c31\u4f1a\u6267\u884c\u5220\u9664\u64cd\u4f5c\uff1b\u5982\u679c\u7528\u6237\u70b9\u51fb\u4e86\u53d6\u6d88\u6309\u94ae\uff0c\u5c31\u4f1a\u6267\u884c\u53d6\u6d88\u64cd\u4f5c\u3002<\/p>\n<p><strong>2. \u5728jQuery\u4e2d\u5982\u4f55\u81ea\u5b9a\u4e49\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u6837\u5f0f\u548c\u5185\u5bb9\uff1f<\/strong><br \/>\n\u5982\u679c\u4f60\u5e0c\u671b\u81ea\u5b9a\u4e49\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u6837\u5f0f\u548c\u5185\u5bb9\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u7684\u5bf9\u8bdd\u6846\u63d2\u4ef6\uff0c\u5982jQuery UI\u6216SweetAlert\u3002\u8fd9\u4e9b\u63d2\u4ef6\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u9009\u9879\u548c\u529f\u80fd\uff0c\u53ef\u4ee5\u8ba9\u4f60\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u81ea\u5b9a\u4e49\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u5916\u89c2\u548c\u884c\u4e3a\u3002<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5982\u679c\u4f60\u60f3\u4f7f\u7528jQuery UI\u6765\u81ea\u5b9a\u4e49\u786e\u8ba4\u5bf9\u8bdd\u6846\uff0c\u4f60\u53ef\u4ee5\u9996\u5148\u5f15\u5165jQuery UI\u5e93\uff0c\u7136\u540e\u4f7f\u7528<code>dialog()<\/code>\u51fd\u6570\u6765\u521b\u5efa\u5bf9\u8bdd\u6846\uff0c\u4ee5\u53ca\u76f8\u5e94\u7684\u9009\u9879\u6765\u81ea\u5b9a\u4e49\u5bf9\u8bdd\u6846\u7684\u6837\u5f0f\u548c\u5185\u5bb9\u3002<\/p>\n<pre><code class=\"language-javascript\">$(&#039;#confirmButton&#039;).click(function () {\n   $(&#039;&lt;div&gt;\u786e\u8ba4\u5220\u9664\u5417?&lt;\/div&gt;&#039;).dialog({\n      modal: true, \/\/\u4f7f\u5bf9\u8bdd\u6846\u6a21\u6001\u5316\uff0c\u7981\u6b62\u7528\u6237\u5728\u5bf9\u8bdd\u6846\u4e4b\u5916\u8fdb\u884c\u4ea4\u4e92\n      buttons: {\n         &quot;\u786e\u8ba4&quot;: function() {\n            \/\/ \u7528\u6237\u70b9\u51fb\u4e86\u786e\u8ba4\u6309\u94ae\n            \/\/ \u5728\u8fd9\u91cc\u6267\u884c\u5220\u9664\u64cd\u4f5c\n            $(this).dialog(&#039;close&#039;);\n         },\n         &quot;\u53d6\u6d88&quot;: function() {\n            \/\/ \u7528\u6237\u70b9\u51fb\u4e86\u53d6\u6d88\u6309\u94ae\n            \/\/ \u6267\u884c\u53d6\u6d88\u64cd\u4f5c\n            $(this).dialog(&#039;close&#039;);\n         }\n      }\n   });\n});\n<\/code><\/pre>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6a21\u6001\u5bf9\u8bdd\u6846\uff0c\u5176\u4e2d\u5305\u542b\u201c\u786e\u8ba4\u201d\u548c\u201c\u53d6\u6d88\u201d\u6309\u94ae\uff0c\u5e76\u6839\u636e\u7528\u6237\u9009\u62e9\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<p><strong>3. \u5728jQuery\u4e2d\u5982\u4f55\u5904\u7406\u4e0d\u652f\u6301\u5bf9\u8bdd\u6846\u7684\u60c5\u51b5\uff1f<\/strong><br \/>\n\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u7528\u6237\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5bf9\u8bdd\u6846\u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u501f\u52a9jQuery\u7684\u6761\u4ef6\u8bed\u53e5\u6765\u5904\u7406\u8be5\u60c5\u51b5\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>window.confirm<\/code>\u6765\u68c0\u6d4b\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301\u5bf9\u8bdd\u6846\u529f\u80fd\uff0c\u7136\u540e\u6839\u636e\u7ed3\u679c\u6765\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<pre><code class=\"language-javascript\">if (window.confirm) {\n   \/\/ \u6d4f\u89c8\u5668\u652f\u6301\u5bf9\u8bdd\u6846\u529f\u80fd\n   \/\/ \u5728\u8fd9\u91cc\u4f7f\u7528`confirm()`\u51fd\u6570\u6765\u521b\u5efa\u786e\u8ba4\u5bf9\u8bdd\u6846\n} else {\n   \/\/ \u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5bf9\u8bdd\u6846\u529f\u80fd\n   \/\/ \u5728\u8fd9\u91cc\u4f7f\u7528\u5907\u7528\u7684\u65b9\u6cd5\u6216\u663e\u793a\u63d0\u793a\u4fe1\u606f\n}\n<\/code><\/pre>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301\u5bf9\u8bdd\u6846\u6765\u9009\u62e9\u6027\u5730\u521b\u5efa\u786e\u8ba4\u5bf9\u8bdd\u6846\u6216\u91c7\u53d6\u5176\u4ed6\u7684\u5907\u7528\u65b9\u6cd5\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u5728\u4e0d\u540c\u7684\u6d4f\u89c8\u5668\u73af\u5883\u4e2d\u7684\u7528\u6237\u90fd\u80fd\u6b63\u5e38\u5730\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728jQuery\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u786e\u8ba4\u5bf9\u8bdd\u6846\u6d89\u53ca\u51e0\u4e2a\u6838\u5fc3\u6280\u672f\u70b9\uff1a\u5229\u7528jQuery UI\u5e93\u7684Dialog\u5c0f\u90e8\u4ef6\u3001\u8c03\u7528di [&hellip;]","protected":false},"author":3,"featured_media":311114,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/311071"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=311071"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/311071\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/311114"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=311071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=311071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=311071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}