{"id":137,"date":"2018-05-26T20:55:56","date_gmt":"2018-05-26T12:55:56","guid":{"rendered":"https:\/\/blog.indeex.club\/?p=137"},"modified":"2020-06-20T23:07:39","modified_gmt":"2020-06-20T15:07:39","slug":"c-c%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91","status":"publish","type":"post","link":"https:\/\/blog.indeex.club\/index.php\/2018\/05\/26\/c-c%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91\/","title":{"rendered":"C\/C++\u524d\u7aef\u5f00\u53d1"},"content":{"rendered":"<hr \/>\n<h2>Hello Indeex<\/h2>\n<p>\u8fd9\u91cc\u5c06\u5148\u6784\u5efa\u4e00\u57fa\u4e8e\u63a7\u5236\u53f0\u7684\u4e2a\u7b80\u5355<code>Hello Indeex<\/code>\u3002\u5728\u5f00\u59cb\u524d\uff0c\u9700\u8981\u786e\u4fdd\u4f60\u672c\u7ea7\u4e0a\u5df2\u7ecf\u5b89\u88c5\u76f8\u5173\u5f00\u53d1\u5de5\u5177\u5e76\u53ef\u7528\uff0c\u76f8\u5173\u5de5\u5177\u53ca\u6280\u672f\u53ef\u54a8\u8be2\u4e13\u4e1a\u4eba\u58eb\u6216\u8005\u901a\u8fc7\u641c\u7d22\u5f15\u64ce\u83b7\u5f97\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684<code>C++<\/code>\u6587\u4ef6<code>indeex.cpp<\/code>\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">#include &lt;indeex\/clientlib.h&gt;\n#include &lt;indeex\/client.h&gt;\n\n[[indeex::genericjs]] void domOutput(const char* str)\n{\n        client::console.log(str);\n}\n\nvoid Main()\n{\n        domOutput(\"Hello Indeex\");\n}\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>Main<\/strong>\u51fd\u6570\u4ee3\u8868\u5e94\u7528\u7a0b\u5e8f\u7f16\u8bd1\u5165\u53e3\uff0c\u7531\u4e8e\u5e95\u5c42\u8bed\u8a00\u65e0\u6cd5\u76f4\u63a5\u64cd\u4f5cDOM\uff0c\u56e0\u6b64\u9700\u8981\u6307\u5b9a<code>Indeex domOutput<\/code>\u4f7f\u7528<code>[[indeex::genericjs]]<\/code>\u5c5e\u6027\u5728<code>ECMAScript<\/code>(\u56fd\u5185\u53c8\u540d<code>Javascript<\/code>)\u4e2d\u8fdb\u884c\u7f16\u8bd1\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">\/opt\/indeex\/bin\/clang++ -target indeex -indeex-mode=wasm -indeex-wasm-loader=indeex.js -O2 -o indeex.wasm indeex.cpp\n<\/code><\/pre>\n<p>\u6b64\u547d\u4ee4\u751f\u6210\u4e24\u4e2a\u6587\u4ef6\uff1a\u4e00\u4e2a<code>ECMAScript Loader<\/code>\uff08indeex.js\uff09\u548c\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\uff08indeex.wasm\uff09\u5728\u6d4f\u89c8\u5668\u4e2d\u6df7\u5408\u4f7f\u7528\u3002\u63a7\u5236\u53f0\u7531ECMAScript\u8d1f\u8d23\u6253\u5370\u51fa\u6765\uff0c\u4fdd\u8bc1\u4e0eDOM\u6216\u4efb\u4f55\u5916\u90e8ECMAScript\u5e93\u6216\u8005\u5176\u4ed6ECMAScript\u4ee3\u7801\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<ol start=\"3\">\n<li>\u8fd9\u91cc\u9700\u8981\u4e00\u4e2a\u7b80\u5355\u7684HTML\u9875\u9762\uff1a<\/li>\n<\/ol>\n<p>indeex.html<\/p>\n<pre data-language=HTML><code class=\"language-markup line-numbers\">&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\" dir=\"ltr\"&gt;\n  &lt;head&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;title&gt;c\/c++ demo with indeex - http:\/\/www.indeex.cc&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;canvas id=\"indeexcanvas\"&gt;&lt;\/canvas&gt;\n    &lt;script src=\"indeex.js\"&gt;&lt;\/script&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>\u53ea\u9700\u8981\u4f7f\u7528<code>ECMAScript Loader<\/code>\uff0c\u4e8c\u8fdb\u5236\u6587\u4ef6\u5c31\u4f1a\u81ea\u52a8\u52a0\u8f7d\u3002<\/p>\n<ol start=\"4\">\n<li>\u5728\u6839\u76ee\u5f55\u4e2d\u542f\u52a8\u672c\u5730<code>HTTP<\/code>\u670d\u52a1\u5668\u3002\u7531\u4e8e\u6211\u662f\u524d\u7aef\u5de5\u7a0b\u5e08\uff0c\u8fd9\u91cc\u6211\u4f7f\u7528<code>http-server<\/code>\uff0c\u4f46\u4efb\u4f55\u4f60\u559c\u6b22\u7684\u670d\u52a1\u5668\u90fd\u53ef\u4ee5:<\/li>\n<\/ol>\n<pre><code class=\"language-nodejs line-numbers\">http-server -p 8081\n<\/code><\/pre>\n<ol start=\"5\">\n<li>\u7136\u540e\u4f7f\u7528\u4efb\u4f55\u4f60\u559c\u6b22\u7684\u73b0\u4ee3\u6d4f\u89c8\u5668\u8bbf\u95ee\u60a8\u7684<code>indeex.html<\/code>\u9875\u9762\uff0c\u4f8b\u5982<code>http:\/\/127.0.0.1:8081<\/code>\uff1a<\/li>\n<\/ol>\n<p><img src=\"http:\/\/hungking.cc\/assets\/imgs\/indeex.cc\/ctojs1.png\" alt=\"C\/C++\u524d\u7aef\u5f00\u53d1\" \/><\/p>\n<h2>Hello Canvas<\/h2>\n<ol>\n<li>\u7531\u4e8e\u4f7f\u7528<code>requestAnimationFrame<\/code>\u53ef\u4ee5\u4f7fCanvas\u83b7\u53d6\u6700\u4f73\u6027\u80fd,\u4f46Canvas 2D API\u4e0d\u80fd\u76f4\u63a5\u4ece\u8bfb\u53d6\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u56e0\u6b64\u9700\u8981\u5728\u7f16\u8bd1\u5668\u4e2d\u751f\u6210ECMAScript\u4ee3\u7801\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">#include &lt;indeex\/clientlib.h&gt;\n#include &lt;indeex\/client.h&gt;\n\n\n\/\/ \u6240\u6709\u56fe\u5f62\u7ed8\u5236\u4ee3\u7801\u90fd\u9700\u8981\u4fdd\u7559\u5728ES\u4e2d\u3002\u53ef\u4ee5\u7528[[cheerp::genericjs]]\u6807\u7b7e\u6765\u6807\u8bb0\u6574\u4e2aclass\n\/\/ \u6240\u6709\u5c5e\u6027\u548c\u65b9\u6cd5\u90fd\u5c06\u88ab\u7f16\u8bd1\u4e3a\u6807\u51c6\u7684ECMAScript\nclass [[indeex::genericjs]] Graphics\n{\nprivate:\n    \/\/ \u50cf\u64cd\u4f5c\u4efb\u4f55\u5176\u4ed6C++\u5bf9\u8c61\u4e00\u6837\u5728\u7f16\u8bd1\u540e\u53ef\u4ee5\u4f7f\u7528\u6807\u51c6\u7684ECMAScript\u6765\u64cd\u4f5cDOM\u5bf9\u8c61\n    static client::HTMLCanvasElement* canvas;\n    static client::CanvasRenderingContext2D* canvasCtx;\n    static int width;\n    static int height;\npublic:\n    \/\/ \u7528\u4e8e\u63d0\u4f9b\u5bf9DOM\u548cCanvas API\u7684\u8bbf\u95ee\uff0c\u65b9\u4fbf\u7f16\u8bd1\u4e3a\u4e8c\u8fdb\u5236\n    static void initializeCanvas(int w, int h)\n    {\n        width = w;\n        height = h;\n        canvas = (client::HTMLCanvasElement*)client::document.getElementById(\"pongcanvas\");\n        canvas-&gt;set_width(w);\n        canvas-&gt;set_height(h);\n        client::document.get_body()-&gt;appendChild(canvas);\n        canvasCtx = (client::CanvasRenderingContext2D*)canvas-&gt;getContext(\"2d\");\n    }\n    static void debugOutput(const char* str)\n    {\n        canvasCtx-&gt;set_font(\"24px sans-serif\");\n        canvasCtx-&gt;fillText(str, 0, height - 24);\n    }\n};\n\n\/\/ \u8c03\u7528\u5e76\u7f16\u8bd1\nvoid Main()\n{\n    Graphics::initializeCanvas(800, 800);\n    Graphics::debugOutput(\"Hello Canvas\");\n}\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u5df2\u7ecf\u521b\u5efa\u597d\u4e86<code>Graphics<\/code>\u7c7b\u5e76\u4f7f\u7528<code>[[cheerp::genericjs]]<\/code>\u5c5e\u6027\u5bf9\u5176\u8fdb\u884c\u4e86\u6807\u8bb0\u3002Indeex\u5c06\u4f1a\u751f\u6210\u6807\u51c6\u7684ECMAScript\u4ee3\u7801\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728C ++\u4e2d\u5b8c\u6210\u5bf9DOM\u7684\u64cd\u4f5c\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u4efb\u4f55\u6027\u80fd\u3001\u591a\u4f59\u4ee3\u7801\u6216\u8005\u5360\u7528\u8d44\u6e90\u3002Main\u4e2d\u7684\u4ee3\u7801\u88ab\u7f16\u8bd1\u4e3a\u4e8c\u8fdb\u5236\uff0c\u5e76\u5c06\u4e8c\u8fdb\u5236\u5bfc\u5165\u8fdb\u6765\u5e76\u7f16\u8bd1\u4e3aECMAScript\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>\u5237\u65b0\u6d4f\u89c8\u5668\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/li>\n<\/ol>\n<p><img src=\"http:\/\/hungking.cc\/assets\/imgs\/indeex.cc\/ctojs2.png\" alt=\"C\/C++\u524d\u7aef\u5f00\u53d1\" \/><\/p>\n<h2>Hello Graphics<\/h2>\n<p>\u63a5\u4e0b\u6765\u5f00\u59cb\u5236\u4f5c\u6e38\u620f\u3002\u9996\u5148\u7ed8\u5236\u63a5\u7403\u7684\u5c0f\u6728\u5757\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2aPlatform class\u4f5c\u4e3a\u6e38\u620f\u4e2d\u552f\u4e00\u53ef\u63a7\u5236\u7684\u5b9e\u4f8b\u5bf9\u8c61\uff0c\u53ea\u80fd\u4f7f\u7528\u952e\u76d8\u5411\u5de6\u548c\u5411\u53f3\u79fb\u52a8\uff0c\u6e38\u620f\u80cc\u666f\u4e3a\u9ed1\u8272\uff0c\u5bf9\u8c61\u4e3a\u767d\u8272\u5c0f\u6728\u5757\u3002\u800c\u4e14\u4e0d\u5728\u8fd9\u4e2a\u7c7b\u4e0a\u4f7f\u7528 <code>cheerp::genericjs<\/code> \u5c5e\u6027:<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">class Platform\n{\nprivate:\n    int x;\n    int h;\n    int width;\n    int height;\npublic:\n        Platform(int x, int y, int width, int height):x(x),y(y),width(width),height(height)\n    {\n    }\n    int getX() const\n    {\n        return x;\n    }\n    int getY() const\n    {\n        return y;\n    }\n    int getWidth() const\n    {\n        return width;\n    }\n    int getHeight() const\n    {\n        return width;\n    }\n    void render() const\n    {\n        Graphics::drawRect(w, y, width, height, 0xffffff);\n    }                                    \n};\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u7ed9\u8fd9\u4e2a\u7c7b\u914d\u7f6e\u4e00\u4e9b\u57fa\u672c\u7684\u5c5e\u6027\u548c\u4e00\u4e2a\u6e32\u67d3\u51fd\u6570\uff0c\u7136\u540e\u5c06\u6e32\u67d3\u59d4\u6258\u7ed9Graphics\u7c7b\u3002\u5c06drawRect\u51fd\u6570\u6dfb\u52a0\u5230Graphics\u7c7b\u4e2d\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">static void drawRect(int w, int y, int width, int height, int rgb)\n    {\n        int r = rgb&amp;0xff;\n        int g = (rgb&gt;&gt;8)&amp;0xff;\n        int b = (rgb&gt;&gt;16)&amp;0xff;\n        canvasCtx-&gt;set_fillStyle(client::String(\"\").concat(\"rgb(\"r, \",\", g, \",\", b, \")\"));\n        canvasCtx-&gt;fillRect(x, y, width, height);\n    }\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\u5b9e\u4f8b\u5316\u4e00\u4e2a\u5168\u5c40Platform\u5b9e\u4f8b\uff0c\u6dfb\u52a0\u4e00\u4e2a\u9876\u7ea7\u51fd\u6570\u6765\u5904\u7406\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u5faa\u73af\u6765\u6e05\u9664\u80cc\u666f\u5e76\u91cd\u65b0\u6e32\u67d3\u753b\u5e03\u3002<\/li>\n<\/ol>\n<p>\u91cd\u65b0\u7f16\u8bd1\uff1a<\/p>\n<p><img src=\"http:\/\/hungking.cc\/assets\/imgs\/indeex.cc\/ctojs3.png\" alt=\"C\/C++\u524d\u7aef\u5f00\u53d1\" \/><\/p>\n<h2>Hello Animation &amp; Keyboard Event<\/h2>\n<ol>\n<li>\u6dfb\u52a0\u4e00\u4e2a<code>keydown<\/code>\u4e8b\u4ef6\u6765\u5904\u7406\u952e\u76d8\u63a7\u5236\u3002\u7531\u4e8e\u662fDOM\u4ea4\u4e92\uff0c\u8fd9\u6bb5\u4ee3\u7801\u5c06\u88ab\u6807\u8bb0\u4e3a<code>genericjs<\/code>, \u5b83\u4f1a\u66f4\u65b0\u5c0f\u6728\u5757\u7684\u4f4d\u7f6e\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">void moveLeft()\n    {\n        x -= 3;\n    }\n    void moveRight()\n    {\n        x += 3;\n    }\n<\/code><\/pre>\n<ol start=\"2\">\n<li>keyDown\u4e8b\u4ef6\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">void Graphics::keyDownHandler(client::KeyboardEvent* e)\n{\n    if(e-&gt;get_keyCode() == 37)\n        platform.moveLeft();\n    else\n        platform.moveRight();\n}\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\u73b0\u5728\u53ef\u4ee5\u79fb\u52a8\u5c0f\u6728\u5757\u4e86\uff1a<br \/>\n<img src=\"http:\/\/hungking.cc\/assets\/imgs\/indeex.cc\/ctojs4.gif\" alt=\"C\/C++\u524d\u7aef\u5f00\u53d1\" \/><\/li>\n<\/ol>\n<h2>Hello Finally<\/h2>\n<ol>\n<li>\u63a5\u4e0b\u6765\u5c31\u662f\u7403\u7684\u79fb\u52a8\u4e86\u3002\u521b\u5efa\u4e00\u4e2aBall\u7c7b\uff0c\u6709\u4f4d\u7f6e\u548c\u901f\u5ea6\u3002\u9700\u8981\u5728\u4e8c\u8fdb\u5236\u4e2d\u4fdd\u7559\u8fd9\u4e2a\u7c7b\uff0c\u4e0d\u9700\u8981\u4f7f\u7528<code>[[cheerp::genericjs]]<\/code>\u6807\u8bb0:<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">class Ball\n{\nprivate:\n    int x;\n    int y;\n    int vx;\n    int vy;\npublic:\n    Ball(int x, int y, int vx, int vy):x(x),y(y),vx(vx),vy(vy)\n    {\n    }\n    void update()\n    {\n        x += vx;\n        y += vy;\n    }\n    \/\/ \u7403\u51fa\u754c\u4e86\u8fd4\u56detrue\n    bool collide(const Platform&amp; platform, int maxX, int maxY)\n    {\n        \/\/ \u5e95\u90e8\n        if(y &gt;= maxY)\n            return true;\n        \/\/ \u5de6\u53f3\u8fb9\u754c\n        if(x &lt;= 0 || x &gt;= maxX)\n            vx = -vx;\n        \/\/ \u9876\u90e8\n        if(y &lt;= 0)\n            vy = -vy;\n        \/\/ \u78b0\u649e\u68c0\u6d4b\n        if(platform.getX() &lt; x &amp;&amp; (platform.getX() + platform.getWidth()) &gt; x &amp;&amp;\n            platform.getY() &lt; y &amp;&amp; (platform.getY() + platform.getHeight()) &gt; y)\n        {\n            vy = -vy;\n        }\n        return false;\n    }\n    void render()\n    {\n        Graphics::drawCircle(x, y, 5, 0xffffff);\n    }\n};\n<\/code><\/pre>\n<ol start=\"2\">\n<li><code>Ball::collide<\/code>\u4f1a\u4e00\u76f4\u68c0\u67e5\u7403\u662f\u5426\u5df2\u7ecf\u8d85\u51fa\u5e95\u90e8\uff0c\u5e76\u7ed9\u51fa\u6587\u5b57\u63d0\u793a\uff1a<\/li>\n<\/ol>\n<pre><code class=\"language-c line-numbers\">void mainLoop()\n{    \n    \/\/ \u91cd\u7f6e\u80cc\u666f\u4e3a\u9ed1\u8272\n    Graphics::drawRect(0, 0, 400, 400, 0);\n    \/\/ \u7ed8\u5236\u5c0f\u6728\u5757\n    platform.render();\n    \/\/ \u66f4\u65b0\u7403\u7684\u4f4d\u7f6e\u548c\u72b6\u6001\n    ball.update();\n    \/\/ \u78b0\u649e\u68c0\u6d4b\n    bool hasLost = ball.collide(platform, 400, 400);\n    if(hasLost)\n        Graphics::debugOutput(\"You lost!\");\n    \/\/ \u6e32\u67d3\u7403\n    ball.render();\n}\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\u6700\u540e\u5237\u65b0\u6d4f\u89c8\u5668\uff1a<\/li>\n<\/ol>\n<p><img src=\"http:\/\/hungking.cc\/assets\/imgs\/indeex.cc\/ctojs5.gif\" alt=\"C\/C++\u524d\u7aef\u5f00\u53d1\" \/><\/p>\n<p>\u4e00\u5207\u770b\u8d77\u6765\u90fd\u8fd8\u4e0d\u9519\uff01<\/p>\n<p>Indeex\u901a\u8fc7\u5c06C\/C++\u7f16\u8bd1\u4e3a\u9ad8\u6027\u80fd\u7684\u4e8c\u8fdb\u5236\u4ee3\u7801\u548c\u9ad8\u7ea7\u52a8\u6001\u7f16\u7a0b\u8bed\u8a00ECMAScript\u4ee3\u7801\u6765\u5f00\u53d1\u9ad8\u6027\u80fd\u7684\u524d\u7aef\u5e94\u7528\u6216\u8005\u6e38\u620f\uff0c\u800c\u4e14\u8fd8\u53ef\u4ee5\u4e0eDOM\u6216\u8005\u5176\u4ed6ECMAScript\u5e93\u8fdb\u884c\u65e0\u7f1d\u4ea4\u4e92\uff0c\u52a8\u6001\u63a7\u5236\u5185\u5b58\u548c\u5783\u573e\u56de\u6536\u3002<\/p>\n<p>code enjoy! \u0295\u2022\u1d25\u2022\u0294<\/p>\n<p>\u4f5c\u8005\uff1aindeex<\/p>\n<p>\u94fe\u63a5\uff1a<a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/indeex.cc\/\">http:\/\/indeex.cc<\/a><\/p>\n<p>\u8457\u4f5c\u6743\u5f52\u4f5c\u8005\u6240\u6709\u3002\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\u83b7\u5f97\u6388\u6743\uff0c\u975e\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Hello Indeex \u8fd9\u91cc\u5c06\u5148\u6784\u5efa\u4e00\u57fa\u4e8e\u63a7\u5236\u53f0\u7684\u4e2a\u7b80\u5355Hello Indeex\u3002\u5728\u5f00\u59cb\u524d\uff0c\u9700\u8981\u786e<a href=\"https:\/\/blog.indeex.club\/index.php\/2018\/05\/26\/c-c%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91\/\" class=\"read-more\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[4],"_links":{"self":[{"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/posts\/137"}],"collection":[{"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":1,"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.indeex.club\/index.php\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}