{"id":32514,"date":"2024-11-25T08:49:58","date_gmt":"2024-11-25T00:49:58","guid":{"rendered":"https:\/\/fwq.ai\/blog\/32514\/"},"modified":"2024-11-25T08:49:58","modified_gmt":"2024-11-25T00:49:58","slug":"%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e4%b9%8b%e7%bb%84%e4%bb%b6%e4%b9%8b%e9%97%b4%e7%9a%84%e4%bc%a0%e5%80%bc%e6%96%b9%e6%b3%95%ef%bc%88%e4%bb%a3%e7%a0%81%e7%a4%ba%e4%be%8b%ef%bc%89","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/32514\/","title":{"rendered":"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09"},"content":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u5185\u5bb9\u662f\u5173\u4e8e\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\uff0c\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p>1.\u521b\u5efa\u7ec4\u4ef6<\/p>\n<p>\u6253\u5f00\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u521b\u5efa\u7ec4\u4ef6\uff0c\u4f1a\u751f\u6210\u56db\u4e2a\u6587\u4ef6\uff1awxml,wxss,js,json<\/p>\n<p>\u5728wxml\u4e2d\uff1a<\/p>\n<pre>&lt;view&gt;\u6211\u662f\u7ec4\u4ef6A&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728js\u4e2d\uff1a<\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n   \n  },\n  data: {\n  \n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n   \n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728json\u4e2d\uff1a<\/p>\n<pre>{\n  \"component\": true,\n  \"usingComponents\": {}\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5373\u7ec4\u4ef6\u521b\u5efa\u5b8c\u6210<\/p>\n<h3>2.\u5f15\u5165\u7ec4\u4ef6<\/h3>\n<p>\u8981\u5728index\u4e2d\u5f15\u5165\u7ec4\u4ef6\uff0c\u5219<\/p>\n<p>\u5728index.json\u4e2d\uff1a<\/p>\n<pre>{\n  \"usingComponents\": {\n    \"componentA\": \"..\/..\/components\/child1\/child1\"\n  }\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728index.wxml\u4e2d\uff1a<\/p>\n<pre>&lt;view&gt;\n    &lt;view&gt;\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7ec4\u4ef6\u4f20\u53c2&lt;\/view&gt;\n    &lt;componentA \/&gt;\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5219\u7ec4\u4ef6\u5c31\u80fd\u591f\u663e\u793a\uff0c\u8981\u4f7f\u5f97\u7ec4\u4ef6\u5f15\u5165\uff0c\u5148\u8981\u5728json\u4e2d\u53bb\u7ed9\u7ec4\u4ef6\u5b9a\u4e49\u4e00\u4e0b\u624d\u53ef\u5728wxml\u4e2d\u663e\u793a<\/p>\n<h3>3.\u7236\u7ec4\u4ef6\u5411\u5b50\u7ec4\u4ef6\u4f20\u53c2<\/h3>\n<p>\u58f0\u660e\uff1aA\u7ec4\u4ef6\u4e3a\u7236\u7ec4\u4ef6\uff0cB\u7ec4\u4ef6\u4e3a\u5b50\u7ec4\u4ef6\uff0c\u4ee5\u4e0b\u662fA\u7ec4\u4ef6\u5411B\u7ec4\u4ef6\u4f20\u53c2\uff1a<\/p>\n<p><strong>\u5728A\u7ec4\u4ef6\u4e2d\u5f15\u5165B\u7ec4\u4ef6<\/strong><\/p>\n<p>\u5728A\u7ec4\u4ef6\u7684json\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>{\n  \"component\": true,\n  \"usingComponents\": {\n    \"componentB\": \"..\/child2\/child2\"\n  }\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728A\u7ec4\u4ef6\u7684wxml\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>&lt;view&gt;\u6211\u662f\u7ec4\u4ef6A&lt;\/view&gt;\n\n   \n   \n    \n     \u5b50\u7ec4\u4ef6\u5185\u5bb9\uff1a\n    \n   \n    \n\n   <\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728B\u7ec4\u4ef6\u7684js\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n    paramAtoB:String\n  },\n  data: {\n\n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n\n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5373\u5728properties\u4e2d\u5b9a\u4e49A\u7ec4\u4ef6\u8981\u4f20\u8fc7\u6765\u7684\u53c2\u6570\u7c7b\u578b<\/p>\n<p>\u5728B\u7ec4\u4ef6\u7684wxml\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>&lt;view style='border:2px solid gray;'&gt;\n&lt;view style='text-align:center;'&gt;\u6211\u662f\u7ec4\u4ef6B&lt;\/view&gt;\n&lt;view&gt;A\u4e2d\u4f20\u5165\u7684\u53c2\u6570\uff1a{{paramAtoB}}&lt;\/view&gt;\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>\u603b\u7ed3\uff1a<\/strong> A\u7ec4\u4ef6\u5411B\u7ec4\u4ef6\u4f20\u53c2\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u5728A\u7ec4\u4ef6\u4e2d\u5f15\u5165B\u7ec4\u4ef6\u7684\u65f6\u5019\uff0c\u5e26\u4e0a\u4e00\u4e2a\u5c5e\u6027paramAtoB\uff0c\u5e76\u4e14\u7ed9\u5176\u8d4b\u503c\uff0c\u7136\u540eB\u7ec4\u4ef6\u901a\u8fc7\u8fd9\u4e2a\u5c5e\u6027\u540d\u79f0paramAtoB\uff0c\u83b7\u53d6\u5176\u503c<\/p>\n<h3>4.\u5b50\u7ec4\u4ef6\u5411\u7236\u7ec4\u4ef6\u4f20\u53c2<\/h3>\n<p>\u58f0\u660e\uff1aA\u7ec4\u4ef6\u4e3a\u7236\u7ec4\u4ef6\uff0cB\u7ec4\u4ef6\u4e3a\u5b50\u7ec4\u4ef6\uff0c\u4ee5\u4e0b\u662fB\u7ec4\u4ef6\u5411A\u7ec4\u4ef6\u4f20\u53c2\uff1a<\/p>\n<p>\u8981\u8ba9\u5b50\u7ec4\u4ef6\u7ed9\u7236\u7ec4\u4ef6\u4f20\u53c2\uff0c\u9996\u5148\u5f97\u5728\u7236\u7ec4\u4ef6\u5f15\u5165\u5b50\u7ec4\u4ef6\u7684\u65f6\u5019\uff0c\u52a0\u4e2a\u89e6\u53d1\u4e8b\u4ef6\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><strong>\u5728\u7236\u7ec4\u4ef6A\u4e2dwxml:<\/strong><\/p>\n<pre>&lt;view style='padding:20px;border:2px solid red;'&gt;\n&lt;view style='text-align:center;'&gt;\u6211\u662f\u7ec4\u4ef6A&lt;\/view&gt;\n&lt;view&gt;\n   &lt;view&gt;A\u7ec4\u4ef6\u5185\u5bb9\uff1a&lt;\/view&gt;\n   &lt;view&gt;B\u7ec4\u4ef6\u4f20\u5165\u53c2\u6570\uff1a{{paramBtoA}}&lt;\/view&gt;\n   &lt;componentB paramAtoB='\u6211\u662fA\u5411B\u4e2d\u4f20\u5165\u7684\u53c2\u6570' bind:myevent=\"onMyEvent\"\/&gt;\n&lt;\/view&gt;\n\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>myevent\u5c31\u662f\u7ed1\u5b9a\u7684\u89e6\u53d1\u4e8b\u4ef6<\/p>\n<p><strong>\u5728\u7236\u7ec4\u4ef6A\u4e2djs:<\/strong><\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n   \n  },\n  data: {\n\n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n    onMyEvent:function(e){\n      this.setData({\n        paramBtoA: e.detail.paramBtoA\n      })\n    }\n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>onMyEvent\u5c31\u662f\u5f53\u88ab\u5b50\u7ec4\u4ef6\u89e6\u53d1\u65f6\u7684\u51fd\u6570<\/p>\n<p><strong>\u5728\u5b50\u7ec4\u4ef6B\u4e2dwxml:<\/strong><\/p>\n<pre>&lt;view style='border:2px solid gray;'&gt;\n&lt;view style='text-align:center;'&gt;\u6211\u662f\u7ec4\u4ef6B&lt;\/view&gt;\n&lt;view&gt;A\u4e2d\u4f20\u5165\u7684\u53c2\u6570\uff1a{{paramAtoB}}&lt;\/view&gt;\n  &lt;button bindtap='change'&gt;\u5411A\u4e2d\u4f20\u5165\u53c2\u6570&lt;\/button&gt;\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>button\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\u4e00\u89e6\u53d1\uff0c\u5c31\u53ef\u4ee5\u4f20\u5165\u53c2\u6570\u8fdb\u5165\u7236\u7ec4\u4ef6A\u4e2d\uff0c\u5728\u5b50\u7ec4\u4ef6B\u4e2djs:<\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n    paramAtoB:String\n  },\n  data: {\n\n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n    change:function(){\n      this.triggerEvent('myevent', { paramBtoA:123});\n    }\n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>this.triggerEvent\u5c31\u662f\u6309\u94ae\u70b9\u51fb\u4e4b\u540e\u6267\u884c\u7684\u4e8b\u4ef6\uff0c\u89e6\u53d1myevent\u4e8b\u4ef6\uff0c\u4f20\u5165\u53c2\u6570paramBtoA\u8fdb\u5165\u7236\u7ec4\u4ef6<\/p>\n<ol>\n<li>\n<p>\u4e13\u680f<\/p>\n<\/li>\n<li>\n<p>\u674e\u4e09\u85cf<\/p>\n<\/li>\n<li>\n<p>\u6587\u7ae0\u8be6\u60c5<\/p>\n<\/li>\n<\/ol>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/009\/fa5c7a42e4014639696935512310361c-0.jpg\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe\" \/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<p><\/p>\n<p><strong>\u674e\u4e09\u85cf<\/strong> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/009\/f8b13c089342dd03ed01e36f918758d3-1.svg\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe1\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe1\" \/><span style=\"max-width:90%\">0<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u53d1\u5e03\u4e8e &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u674e\u4e09\u85cf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<p><span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 \u5929\u524d\u53d1\u5e03 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<h1>\u3010\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u3011\u7ec4\u4ef6\u4e4b\u95f4\u4f20\u503c<\/h1>\n<\/p>\n<ul>\n<li>\n<p>\u5c0f\u7a0b\u5e8f<\/p>\n<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;12 \u6b21\u9605\u8bfb &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;\u00b7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u8bfb\u5b8c\u9700\u8981 10 \u5206\u949f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<\/p>\n<p><\/p>\n<p><\/p>\n<p><span><\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span>0<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<p><em><\/em> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<em><\/em> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<em><\/em> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<em><\/em> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<em><\/em> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<em><\/em> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<\/p>\n<h1>\u3010\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u3011\u7ec4\u4ef6\u4e4b\u95f4\u4f20\u503c<\/h1>\n<h3>1.\u521b\u5efa\u7ec4\u4ef6<\/h3>\n<\/p>\n<p>\u6253\u5f00\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u521b\u5efa\u7ec4\u4ef6\uff0c\u4f1a\u751f\u6210\u56db\u4e2a\u6587\u4ef6\uff1awxml,wxss,js,json<\/p>\n<p>\u5728wxml\u4e2d\uff1a<\/p>\n<pre>&lt;view&gt;\u6211\u662f\u7ec4\u4ef6A&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728js\u4e2d\uff1a<\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n   \n  },\n  data: {\n  \n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n   \n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728json\u4e2d\uff1a<\/p>\n<pre>{\n  \"component\": true,\n  \"usingComponents\": {}\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5373\u7ec4\u4ef6\u521b\u5efa\u5b8c\u6210<\/p>\n<h3>2.\u5f15\u5165\u7ec4\u4ef6<\/h3>\n<p>\u8981\u5728index\u4e2d\u5f15\u5165\u7ec4\u4ef6\uff0c\u5219<\/p>\n<p>\u5728index.json\u4e2d\uff1a<\/p>\n<pre>{\n  \"usingComponents\": {\n    \"componentA\": \"..\/..\/components\/child1\/child1\"\n  }\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728index.wxml\u4e2d\uff1a<\/p>\n<pre>&lt;view&gt;\n    &lt;view&gt;\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7ec4\u4ef6\u4f20\u53c2&lt;\/view&gt;\n    &lt;componentA \/&gt;\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5219\u7ec4\u4ef6\u5c31\u80fd\u591f\u663e\u793a\uff0c\u8981\u4f7f\u5f97\u7ec4\u4ef6\u5f15\u5165\uff0c\u5148\u8981\u5728json\u4e2d\u53bb\u7ed9\u7ec4\u4ef6\u5b9a\u4e49\u4e00\u4e0b\u624d\u53ef\u5728wxml\u4e2d\u663e\u793a<\/p>\n<h3>3.\u7236\u7ec4\u4ef6\u5411\u5b50\u7ec4\u4ef6\u4f20\u53c2<\/h3>\n<p>\u58f0\u660e\uff1aA\u7ec4\u4ef6\u4e3a\u7236\u7ec4\u4ef6\uff0cB\u7ec4\u4ef6\u4e3a\u5b50\u7ec4\u4ef6\uff0c\u4ee5\u4e0b\u662fA\u7ec4\u4ef6\u5411B\u7ec4\u4ef6\u4f20\u53c2\uff1a<\/p>\n<p><strong>\u5728A\u7ec4\u4ef6\u4e2d\u5f15\u5165B\u7ec4\u4ef6<\/strong><\/p>\n<p>\u5728A\u7ec4\u4ef6\u7684json\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>{\n  \"component\": true,\n  \"usingComponents\": {\n    \"componentB\": \"..\/child2\/child2\"\n  }\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728A\u7ec4\u4ef6\u7684wxml\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>&lt;view&gt;\u6211\u662f\u7ec4\u4ef6A&lt;\/view&gt;\n\n   \n   \n    \n     \u5b50\u7ec4\u4ef6\u5185\u5bb9\uff1a\n    \n   \n    \n\n   <\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728B\u7ec4\u4ef6\u7684js\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n    paramAtoB:String\n  },\n  data: {\n\n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n\n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5373\u5728properties\u4e2d\u5b9a\u4e49A\u7ec4\u4ef6\u8981\u4f20\u8fc7\u6765\u7684\u53c2\u6570\u7c7b\u578b<\/p>\n<p>\u5728B\u7ec4\u4ef6\u7684wxml\u4e2d\u5199\u5165\uff1a<\/p>\n<pre>&lt;view style='border:2px solid gray;'&gt;\n&lt;view style='text-align:center;'&gt;\u6211\u662f\u7ec4\u4ef6B&lt;\/view&gt;\n&lt;view&gt;A\u4e2d\u4f20\u5165\u7684\u53c2\u6570\uff1a{{paramAtoB}}&lt;\/view&gt;\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>\u603b\u7ed3\uff1a<\/strong> A\u7ec4\u4ef6\u5411B\u7ec4\u4ef6\u4f20\u53c2\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u5728A\u7ec4\u4ef6\u4e2d\u5f15\u5165B\u7ec4\u4ef6\u7684\u65f6\u5019\uff0c\u5e26\u4e0a\u4e00\u4e2a\u5c5e\u6027paramAtoB\uff0c\u5e76\u4e14\u7ed9\u5176\u8d4b\u503c\uff0c\u7136\u540eB\u7ec4\u4ef6\u901a\u8fc7\u8fd9\u4e2a\u5c5e\u6027\u540d\u79f0paramAtoB\uff0c\u83b7\u53d6\u5176\u503c<\/p>\n<h3>4.\u5b50\u7ec4\u4ef6\u5411\u7236\u7ec4\u4ef6\u4f20\u53c2<\/h3>\n<p>\u58f0\u660e\uff1aA\u7ec4\u4ef6\u4e3a\u7236\u7ec4\u4ef6\uff0cB\u7ec4\u4ef6\u4e3a\u5b50\u7ec4\u4ef6\uff0c\u4ee5\u4e0b\u662fB\u7ec4\u4ef6\u5411A\u7ec4\u4ef6\u4f20\u53c2\uff1a<\/p>\n<p>\u8981\u8ba9\u5b50\u7ec4\u4ef6\u7ed9\u7236\u7ec4\u4ef6\u4f20\u53c2\uff0c\u9996\u5148\u5f97\u5728\u7236\u7ec4\u4ef6\u5f15\u5165\u5b50\u7ec4\u4ef6\u7684\u65f6\u5019\uff0c\u52a0\u4e2a\u89e6\u53d1\u4e8b\u4ef6\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><strong>\u5728\u7236\u7ec4\u4ef6A\u4e2dwxml:<\/strong><\/p>\n<pre>&lt;view style='padding:20px;border:2px solid red;'&gt;\n&lt;view style='text-align:center;'&gt;\u6211\u662f\u7ec4\u4ef6A&lt;\/view&gt;\n&lt;view&gt;\n   &lt;view&gt;A\u7ec4\u4ef6\u5185\u5bb9\uff1a&lt;\/view&gt;\n   &lt;view&gt;B\u7ec4\u4ef6\u4f20\u5165\u53c2\u6570\uff1a{{paramBtoA}}&lt;\/view&gt;\n   &lt;componentB paramAtoB='\u6211\u662fA\u5411B\u4e2d\u4f20\u5165\u7684\u53c2\u6570' bind:myevent=\"onMyEvent\"\/&gt;\n&lt;\/view&gt;\n\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>myevent\u5c31\u662f\u7ed1\u5b9a\u7684\u89e6\u53d1\u4e8b\u4ef6<\/p>\n<p><strong>\u5728\u7236\u7ec4\u4ef6A\u4e2djs:<\/strong><\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n   \n  },\n  data: {\n\n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n    onMyEvent:function(e){\n      this.setData({\n        paramBtoA: e.detail.paramBtoA\n      })\n    }\n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>onMyEvent\u5c31\u662f\u5f53\u88ab\u5b50\u7ec4\u4ef6\u89e6\u53d1\u65f6\u7684\u51fd\u6570<\/p>\n<p><strong>\u5728\u5b50\u7ec4\u4ef6B\u4e2dwxml:<\/strong><\/p>\n<pre>&lt;view style='border:2px solid gray;'&gt;\n&lt;view style='text-align:center;'&gt;\u6211\u662f\u7ec4\u4ef6B&lt;\/view&gt;\n&lt;view&gt;A\u4e2d\u4f20\u5165\u7684\u53c2\u6570\uff1a{{paramAtoB}}&lt;\/view&gt;\n  &lt;button bindtap='change'&gt;\u5411A\u4e2d\u4f20\u5165\u53c2\u6570&lt;\/button&gt;\n&lt;\/view&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>button\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\u4e00\u89e6\u53d1\uff0c\u5c31\u53ef\u4ee5\u4f20\u5165\u53c2\u6570\u8fdb\u5165\u7236\u7ec4\u4ef6A\u4e2d\uff0c\u5728\u5b50\u7ec4\u4ef6B\u4e2djs:<\/p>\n<pre>Component({\n\n  behaviors: [],\n\n  properties: {\n    paramAtoB:String\n  },\n  data: {\n\n  }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3\n\n  \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d\n  attached: function () { },\n  moved: function () { },\n  detached: function () { },\n\n  methods: {\n    change:function(){\n      this.triggerEvent('myevent', { paramBtoA:123});\n    }\n  }\n\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>this.triggerEvent\u5c31\u662f\u6309\u94ae\u70b9\u51fb\u4e4b\u540e\u6267\u884c\u7684\u4e8b\u4ef6\uff0c\u89e6\u53d1myevent\u4e8b\u4ef6\uff0c\u4f20\u5165\u53c2\u6570paramBtoA\u8fdb\u5165\u7236\u7ec4\u4ef6<\/p>\n<\/p>\n<ul>\n<li>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/009\/f8b13c089342dd03ed01e36f918758d3-2.svg\" style=\"max-width:90%\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe2\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe2\" \/><\/p>\n<\/li>\n<li>\n<p><em><\/em><\/p>\n<\/li>\n<ul>\n<li>\n<p>\u4e3e\u62a5<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<p><\/p>\n<p><\/p>\n<\/p>\n<h4>\u4f60\u53ef\u80fd\u611f\u5174\u8da3\u7684<\/h4>\n<\/p>\n<p><\/p>\n<p><strong>\u8bc4\u8bba<\/strong> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\n<p>\u9ed8\u8ba4\u6392\u5e8f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u65f6\u95f4\u6392\u5e8f<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u8f7d\u5165\u4e2d&#8230;<\/p>\n<p>\u663e\u793a\u66f4\u591a\u8bc4\u8bba<\/p>\n<p><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/009\/f8b13c089342dd03ed01e36f918758d3-3.png\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe3\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe3\" \/><\/p>\n<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\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>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u5185\u5bb9\u662f\u5173\u4e8e\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u4f20\u503c\u65b9\u6cd5\uff08\u4ee3\u7801\u793a\u4f8b\uff09\uff0c\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002 1.\u521b\u5efa\u7ec4\u4ef6 \u6253\u5f00\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u521b\u5efa\u7ec4\u4ef6\uff0c\u4f1a\u751f\u6210\u56db\u4e2a\u6587\u4ef6\uff1awxml,wxss,js,json \u5728wxml\u4e2d\uff1a &lt;view&gt;\u6211\u662f\u7ec4\u4ef6A&lt;\/view&gt; \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5728js\u4e2d\uff1a Component({ behaviors: [], properties: { }, data: { }, \/\/ \u79c1\u6709\u6570\u636e\uff0c\u53ef\u7528\u4e8e\u6a21\u7248\u6e32\u67d3 \/\/ \u751f\u547d\u5468\u671f\u51fd\u6570\uff0c\u53ef\u4ee5\u4e3a\u51fd\u6570\uff0c\u6216\u4e00\u4e2a\u5728methods\u6bb5\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u540d attached: function () { }, moved: function () { }, detached: function () { }, methods: { } }) \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5728json\u4e2d\uff1a { &#8220;component&#8221;: true, &#8220;usingComponents&#8221;: {} } \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5373\u7ec4\u4ef6\u521b\u5efa\u5b8c\u6210 2.\u5f15\u5165\u7ec4\u4ef6 \u8981\u5728index\u4e2d\u5f15\u5165\u7ec4\u4ef6\uff0c\u5219 \u5728index.json\u4e2d\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-32514","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32514","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=32514"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32514\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=32514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=32514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=32514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}