{"id":272775,"date":"2024-05-16T13:23:56","date_gmt":"2024-05-16T05:23:56","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/272775.html"},"modified":"2024-05-16T13:24:02","modified_gmt":"2024-05-16T05:24:02","slug":"%e5%89%8d%e7%ab%af-vue3-%e9%a1%b9%e7%9b%ae%e4%b8%ad%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e4%b8%80%e4%b8%aa%e5%bc%b9%e7%aa%97%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/272775.html","title":{"rendered":"\u524d\u7aef vue3 \u9879\u76ee\u4e2d\u5982\u4f55\u5b9e\u73b0\u4e00\u4e2a\u5f39\u7a97\u63d2\u4ef6"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194945\/6976f3e3-b6b3-4d5c-9af9-a46d3fccaa3a.webp\" alt=\"\u524d\u7aef vue3 \u9879\u76ee\u4e2d\u5982\u4f55\u5b9e\u73b0\u4e00\u4e2a\u5f39\u7a97\u63d2\u4ef6\" \/><\/p>\n<p><p>\u5728\u524d\u7aefVue3\u9879\u76ee\u4e2d\u5b9e\u73b0\u4e00\u4e2a\u5f39\u7a97\u63d2\u4ef6\uff0c\u53ef\u901a\u8fc7Vue3\u7684Composition API\u3001Teleport\u7279\u6027\u3001\u54cd\u5e94\u5f0f\u5f15\u7528\uff08Reactive References\uff09\u6765\u5b9e\u73b0\u3002\u8fd9\u4e9b\u6280\u672f\u5408\u8d77\u6765\u80fd\u591f\u8ba9\u6211\u4eec\u66f4\u7075\u6d3b\u3001\u9ad8\u6548\u5730\u5f00\u53d1\u51fa\u4e00\u4e2a\u65e2\u8f7b\u91cf\u53c8\u6613\u4e8e\u7ef4\u62a4\u7684\u5f39\u7a97\u63d2\u4ef6\u3002\u5176\u4e2d\uff0c<strong>Vue3\u7684Composition API<\/strong>\u5c24\u5176\u5173\u952e\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u7ec4\u7ec7\u548c\u590d\u7528\u903b\u8f91\u3002\u901a\u8fc7\u4f7f\u7528setup\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u52a0\u76f4\u89c2\u5730\u7ba1\u7406\u7ec4\u4ef6\u7684\u72b6\u6001\u548c\u751f\u547d\u5468\u671f\uff0c\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u4e00\u4e2a\u590d\u6742\u7684UI\u7ec4\u4ef6\u5982\u5f39\u7a97\u63d2\u4ef6\u6765\u8bf4\u662f\u975e\u5e38\u6709\u76ca\u7684\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u8ba9\u6211\u4eec\u66f4\u8be6\u7ec6\u5730\u63a2\u8ba8\u5982\u4f55\u7ed3\u5408\u8fd9\u4e9b\u6280\u672f\u6765\u5f00\u53d1\u4e00\u4e2aVue3\u5f39\u7a97\u63d2\u4ef6\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/h2>\n<\/p>\n<p><p>\u5728\u7740\u624b\u5f00\u53d1Vue3\u7684\u5f39\u7a97\u63d2\u4ef6\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684\u5f00\u53d1\u73af\u5883\u5df2\u7ecf\u5b89\u88c5\u4e86\u6700\u65b0\u7248\u672c\u7684Vue3\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7Vue CLI\u6216\u8005Vite\u8fd9\u6837\u7684\u73b0\u4ee3\u524d\u7aef\u5de5\u5177\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Vue3\u9879\u76ee\u3002\u521b\u5efa\u9879\u76ee\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u6784\u601d\u5f39\u7a97\u7ec4\u4ef6\u7684\u57fa\u672c\u67b6\u6784\u548c\u6240\u9700\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u8bbe\u8ba1\u5f39\u7a97\u7ec4\u4ef6\u7684\u7ed3\u6784<\/h2>\n<\/p>\n<p><p>\u5f39\u7a97\u7ec4\u4ef6\u901a\u5e38\u9700\u8981\u51e0\u4e2a\u57fa\u672c\u7684\u529f\u80fd\uff0c\u5982\u663e\u793a\/\u9690\u85cf\u5f39\u7a97\u3001\u81ea\u5b9a\u4e49\u5f39\u7a97\u5185\u5bb9\u3001\u5f39\u7a97\u52a8\u753b\u7b49\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7Vue3\u7684Composition API\u6765\u7ec4\u7ec7\u8fd9\u4e9b\u529f\u80fd\u7684\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u5b9a\u4e49\u4e00\u4e2a<code>useModal<\/code>\u7684\u7ec4\u5408\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u53ef\u4ee5\u63d0\u4f9b\u6253\u5f00\u5f39\u7a97\u3001\u5173\u95ed\u5f39\u7a97\u7684\u529f\u80fd\u3002\u7136\u540e\uff0c\u6211\u4eec\u5229\u7528Vue3\u7684\u54cd\u5e94\u5f0f\u5f15\u7528\uff08Reactive References\uff09\uff0c\u5982<code>ref<\/code>\u6216<code>reactive<\/code>\uff0c\u6765\u76d1\u63a7\u548c\u7ba1\u7406\u5f39\u7a97\u7684\u663e\u793a\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u5229\u7528Composition API\u6784\u5efa\u5f39\u7a97\u903b\u8f91<\/h2>\n<\/p>\n<p><h3>\u521b\u5efa\u7ec4\u5408\u5f0f\u51fd\u6570<\/h3>\n<\/p>\n<p><pre><code class=\"language-javascript\">import { ref } from &#039;vue&#039;;<\/p>\n<p>export function useModal() {<\/p>\n<p>    const showModal = ref(false);<\/p>\n<p>    function openModal() {<\/p>\n<p>        showModal.value = true;<\/p>\n<p>    }<\/p>\n<p>    function closeModal() {<\/p>\n<p>        showModal.value = false;<\/p>\n<p>    }<\/p>\n<p>    return { showModal, openModal, closeModal };<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u51fd\u6570\u63d0\u4f9b\u4e86\u57fa\u672c\u7684\u6253\u5f00\u548c\u5173\u95ed\u5f39\u7a97\u7684\u903b\u8f91\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u4efb\u4f55\u7ec4\u4ef6\u4e2d\u91cd\u7528\u8fd9\u4e9b\u903b\u8f91\u4e86\u3002<\/p>\n<\/p>\n<p><h3>\u5728\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u7ec4\u5408\u5f0f\u51fd\u6570<\/h3>\n<\/p>\n<p><pre><code class=\"language-vue\">&lt;template&gt;<\/p>\n<p>  &lt;div v-if=&quot;showModal&quot;&gt;<\/p>\n<p>    &lt;!-- Modal Content goes here --&gt;<\/p>\n<p>  &lt;\/div&gt;<\/p>\n<p>&lt;\/template&gt;<\/p>\n<p>&lt;script&gt;<\/p>\n<p>import { useModal } from &#039;.\/useModal&#039;;<\/p>\n<p>export default {<\/p>\n<p>  setup() {<\/p>\n<p>    const { showModal, openModal, closeModal } = useModal();<\/p>\n<p>    return { showModal, openModal, closeModal };<\/p>\n<p>  }<\/p>\n<p>}<\/p>\n<p>&lt;\/script&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u5728\u7ec4\u4ef6\u7684<code>setup<\/code>\u51fd\u6570\u4e2d\u4f7f\u7528<code>useModal<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u5f39\u7a97\u7684\u903b\u8f91\u96c6\u6210\u5230\u4efb\u4f55\u7ec4\u4ef6\u4e2d\uff0c\u540c\u65f6\u4fdd\u6301\u4ee3\u7801\u7684\u6574\u6d01\u548c\u7ec4\u7ec7\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528Teleport\u7279\u6027\u5b9a\u4f4d\u5f39\u7a97<\/h2>\n<\/p>\n<p><p>Vue3\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u5185\u7f6e\u7ec4\u4ef6<code>&lt;Teleport&gt;<\/code>\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u5c06\u5b50\u7ec4\u4ef6\u6e32\u67d3\u5230DOM\u7684\u5176\u4ed6\u90e8\u5206\u3002\u8fd9\u5bf9\u4e8e\u5f39\u7a97\u7ec4\u4ef6\u5c24\u5176\u6709\u7528\uff0c\u56e0\u4e3a\u8fd9\u610f\u5473\u7740\u6211\u4eec\u53ef\u4ee5\u5c06\u5f39\u7a97\u7ec4\u4ef6\u4ece\u5176\u6b63\u5e38\u7684DOM\u4f4d\u7f6e\u201c\u4f20\u9001\u201d\u5230\u4f8b\u5982<code>&lt;body&gt;<\/code>\u6807\u7b7e\u4e0b\uff0c\u907f\u514d\u4e86\u6f5c\u5728\u7684\u6837\u5f0f\u51b2\u7a81\u548cz-index\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-vue\">&lt;template&gt;<\/p>\n<p>  &lt;Teleport to=&quot;body&quot;&gt;<\/p>\n<p>    &lt;div v-if=&quot;showModal&quot; class=&quot;modal&quot;&gt;<\/p>\n<p>      &lt;!-- Modal Content --&gt;<\/p>\n<p>    &lt;\/div&gt;<\/p>\n<p>  &lt;\/Teleport&gt;<\/p>\n<p>&lt;\/template&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5229\u7528<code>&lt;Teleport&gt;<\/code>\u7684\u8fd9\u4e2a\u7279\u6027\uff0c\u6211\u4eec\u7684\u5f39\u7a97\u53ef\u4ee5\u66f4\u52a0\u7075\u6d3b\u5730\u5b9a\u4f4d\u4e8e\u9875\u9762\u4e0a\u7684\u4efb\u4f55\u4f4d\u7f6e\uff0c\u800c\u4e0d\u53d7\u9650\u5236\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u589e\u5f3a\u5f39\u7a97\u7684\u4ea4\u4e92\u4f53\u9a8c\u4e0e\u52a8\u753b\u6548\u679c<\/h2>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u5347\u7528\u6237\u4f53\u9a8c\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4e3a\u5f39\u7a97\u6dfb\u52a0\u8fc7\u6e21\u6548\u679c\u3002Vue3\u63d0\u4f9b\u4e86<code>&lt;Transition&gt;<\/code>\u7ec4\u4ef6\uff0c\u4f7f\u5f97\u6dfb\u52a0\u52a8\u753b\u53d8\u5f97\u975e\u5e38\u7b80\u5355\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-vue\">&lt;template&gt;<\/p>\n<p>  &lt;Teleport to=&quot;body&quot;&gt;<\/p>\n<p>    &lt;Transition name=&quot;modal&quot;&gt;<\/p>\n<p>      &lt;div v-if=&quot;showModal&quot; class=&quot;modal&quot;&gt;<\/p>\n<p>        &lt;!-- Modal Content --&gt;<\/p>\n<p>      &lt;\/div&gt;<\/p>\n<p>    &lt;\/Transition&gt;<\/p>\n<p>  &lt;\/Teleport&gt;<\/p>\n<p>&lt;\/template&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5728CSS\u4e2d\u5b9a\u4e49\u8fdb\u5165\u548c\u79bb\u5f00\u7684\u52a8\u753b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-css\">.modal-enter-active, .modal-leave-active {<\/p>\n<p>  transition: opacity 0.5s;<\/p>\n<p>}<\/p>\n<p>.modal-enter, .modal-leave-to \/* .modal-leave-active in &lt;2.1.8 *\/ {<\/p>\n<p>  opacity: 0;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\uff0c\u7ed3\u5408Vue3\u7684\u7279\u6027\uff0c\u4e0d\u4ec5\u4f7f\u5f97\u521b\u5efa\u52a8\u6001\u548c\u54cd\u5e94\u5f0f\u7684\u5f39\u7a97\u53d8\u5f97\u7b80\u5355\uff0c\u800c\u4e14\u4e5f\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u6d41\u7545\u548c\u5bcc\u6709\u5438\u5f15\u529b\u7684\u4ea4\u4e92\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u5c01\u88c5\u548c\u590d\u7528<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u6b65\u9aa4\uff0c\u6211\u4eec\u5df2\u7ecf\u521b\u5efa\u4e86\u4e00\u4e2a\u57fa\u672c\u7684\u5f39\u7a97\u7ec4\u4ef6\u3002\u4e3a\u4e86\u8fdb\u4e00\u6b65\u63d0\u5347\u5176\u590d\u7528\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u5c01\u88c5\u6210\u4e00\u4e2a\u72ec\u7acb\u7684Vue\u63d2\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u521b\u5efaVue\u63d2\u4ef6\u76f8\u5bf9\u7b80\u5355\uff0c\u6211\u4eec\u53ea\u9700\u8981\u5bfc\u51fa\u4e00\u4e2a\u5177\u6709<code>install<\/code>\u65b9\u6cd5\u7684\u5bf9\u8c61\u3002\u8fd9\u4e2a\u65b9\u6cd5\u63a5\u6536Vue\u7684\u5b9e\u4f8b\u4f5c\u4e3a\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u8fd9\u91cc\u6ce8\u518c\u6211\u4eec\u7684\u5f39\u7a97\u7ec4\u4ef6\uff0c\u4f7f\u5176\u53ef\u4ee5\u5728Vue\u5e94\u7528\u7684\u4efb\u4f55\u5730\u65b9\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">import Modal from &#039;.\/Modal.vue&#039;;<\/p>\n<p>const ModalPlugin = {<\/p>\n<p>  install(Vue) {<\/p>\n<p>    Vue.component(&#039;Modal&#039;, Modal);<\/p>\n<p>  }<\/p>\n<p>};<\/p>\n<p>export default ModalPlugin;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7Vue.use()\u6765\u5168\u5c40\u5b89\u88c5\u6211\u4eec\u7684\u5f39\u7a97\u63d2\u4ef6\u4e86\uff0c\u4f7f\u5f97\u5728\u4efb\u4f55\u7ec4\u4ef6\u4e2d\u90fd\u53ef\u4ee5\u8f7b\u677e\u5730\u521b\u5efa\u548c\u7ba1\u7406\u5f39\u7a97\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0c\u5229\u7528Vue3\u7684Composition API\u3001Teleport\u7279\u6027\u3001\u54cd\u5e94\u5f0f\u5f15\u7528\u4ee5\u53ca\u52a8\u753b\u80fd\u529b\uff0c\u6211\u4eec\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u6613\u4e8e\u7ef4\u62a4\u548c\u9ad8\u5ea6\u53ef\u590d\u7528\u7684\u5f39\u7a97\u63d2\u4ef6\u3002\u8fd9\u4e0d\u4ec5\u589e\u5f3a\u4e86\u4ee3\u7801\u7684\u7ec4\u7ec7\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u4e5f\u4e3a\u6700\u7ec8\u7528\u6237\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u4ea4\u4e92\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u5982\u4f55\u5728 Vue3 \u9879\u76ee\u4e2d\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u5f39\u7a97\u63d2\u4ef6\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u5f39\u7a97\u7ec4\u4ef6\uff1f<\/strong><\/p>\n<ul>\n<li>\u5728 Vue3 \u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a Popup \u7684\u7ec4\u4ef6\u6765\u5b9e\u73b0\u5f39\u7a97\u7a97\u53e3\u7684\u5c55\u793a\u548c\u903b\u8f91\u3002<\/li>\n<li>\u5728\u7ec4\u4ef6\u4e2d\u5b9a\u4e49\u6240\u9700\u7684\u5f39\u7a97\u6837\u5f0f\u548c\u5185\u5bb9\uff0c\u5e76\u4e14\u63d0\u4f9b\u8bf8\u5982\u5f39\u7a97\u6807\u9898\u3001\u6587\u672c\u3001\u786e\u5b9a\u548c\u53d6\u6d88\u6309\u94ae\u7b49\u914d\u7f6e\u5c5e\u6027\uff0c\u4ee5\u65b9\u4fbf\u5728\u4f7f\u7528\u63d2\u4ef6\u65f6\u8fdb\u884c\u81ea\u5b9a\u4e49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u5728 Vue3 \u9879\u76ee\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u5f39\u7a97\u7ec4\u4ef6\uff1f<\/strong><\/p>\n<ul>\n<li>\u5728\u9700\u8981\u4f7f\u7528\u5f39\u7a97\u7684\u7ec4\u4ef6\u4e2d\uff0c\u901a\u8fc7\u5bfc\u5165\u5e76\u6ce8\u518c Popup \u7ec4\u4ef6\u3002<\/li>\n<li>\u4f7f\u7528\u8be5\u7ec4\u4ef6\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f20\u5165\u4e0d\u540c\u7684\u914d\u7f6e\u5c5e\u6027\u6765\u521b\u5efa\u4e0d\u540c\u7684\u5f39\u7a97\u6837\u5f0f\u548c\u5185\u5bb9\u3002<\/li>\n<li>\u53ef\u4ee5\u901a\u8fc7\u76d1\u542c\u5f39\u7a97\u7ec4\u4ef6\u7684\u4e8b\u4ef6\uff0c\u5982\u786e\u5b9a\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\uff0c\u6765\u6267\u884c\u76f8\u5e94\u7684\u903b\u8f91\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5982\u4f55\u5728\u6574\u4e2a\u9879\u76ee\u4e2d\u8c03\u7528\u5f39\u7a97\u63d2\u4ef6\uff1f<\/strong><\/p>\n<ul>\n<li>\u53ef\u4ee5\u5c06\u81ea\u5b9a\u4e49\u7684\u5f39\u7a97\u7ec4\u4ef6\u6ce8\u518c\u4e3a\u5168\u5c40\u7ec4\u4ef6\uff0c\u4ee5\u4fbf\u5728\u9879\u76ee\u7684\u4efb\u4f55\u5730\u65b9\u90fd\u53ef\u4ee5\u4f7f\u7528\u3002<\/li>\n<li>\u5728 m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n.js \u4e2d\u4f7f\u7528 Vue.component() \u5c06 Popup \u6ce8\u518c\u4e3a\u5168\u5c40\u7ec4\u4ef6\u3002<\/li>\n<li>\u8fd9\u6837\uff0c\u4f60\u5c31\u53ef\u4ee5\u5728\u6574\u4e2a\u9879\u76ee\u4e2d\u901a\u8fc7\u7b80\u5355\u7684\u6807\u7b7e\u65b9\u5f0f\u8c03\u7528\u5f39\u7a97\u6765\u5b9e\u73b0\u5f39\u7a97\u63d2\u4ef6\u7684\u529f\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"\u5728\u524d\u7aefVue3\u9879\u76ee\u4e2d\u5b9e\u73b0\u4e00\u4e2a\u5f39\u7a97\u63d2\u4ef6\uff0c\u53ef\u901a\u8fc7Vue3\u7684Composition API\u3001Teleport\u7279\u6027\u3001\u54cd [&hellip;]","protected":false},"author":3,"featured_media":272780,"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\/272775"}],"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=272775"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/272775\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/272780"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=272775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=272775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=272775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}