{"id":961976,"date":"2024-12-27T04:03:59","date_gmt":"2024-12-26T20:03:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/961976.html"},"modified":"2024-12-27T04:04:02","modified_gmt":"2024-12-26T20:04:02","slug":"python%e5%a6%82%e4%bd%95%e6%a8%a1%e6%8b%9fjs%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/961976.html","title":{"rendered":"python\u5982\u4f55\u6a21\u62dfjs\u6587\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104055\/7b967598-985c-4441-bf7e-319cc92b800b.webp\" alt=\"python\u5982\u4f55\u6a21\u62dfjs\u6587\u4ef6\" \/><\/p>\n<p><p> <strong>Python\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u6a21\u62df\u548c\u6267\u884cJavaScript\u6587\u4ef6\uff1a\u4f7f\u7528PyExecJS\u5e93\u3001\u5229\u7528Selenium\u4e0eWebDriver\u3001\u91c7\u7528Node.js\u4e0esubprocess\u6a21\u5757\u3001\u4f7f\u7528js2py\u5e93\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528PyExecJS\u5e93\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u63a5\u53e3\u6765\u6267\u884cJavaScript\u4ee3\u7801\u3002PyExecJS\u662f\u4e00\u4e2aPython\u5e93\uff0c\u5b83\u5c01\u88c5\u4e86\u8bb8\u591aJavaScript\u8fd0\u884c\u65f6\u73af\u5883\uff0c\u5982Node.js\u3001PhantomJS\u3001Nashorn\u7b49\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728Python\u4e2d\u6267\u884cJavaScript\u4ee3\u7801\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528PYEXECJS\u5e93<\/p>\n<\/p>\n<p><p>PyExecJS\u662f\u4e00\u4e2aPython\u5e93\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5728Python\u73af\u5883\u4e2d\u8fd0\u884cJavaScript\u4ee3\u7801\u3002\u5b83\u5c01\u88c5\u4e86\u8bb8\u591aJavaScript\u5f15\u64ce\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u63a5\u53e3\u6765\u6267\u884cJavaScript\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u914d\u7f6e<\/li>\n<\/ol>\n<p><p>\u8981\u4f7f\u7528PyExecJS\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyExecJS<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u80fd\u8fd8\u9700\u8981\u5b89\u88c5\u4e00\u4e2aJavaScript\u5f15\u64ce\uff0c\u5982Node.js\u3002PyExecJS\u4f1a\u81ea\u52a8\u68c0\u6d4b\u7cfb\u7edf\u4e2d\u53ef\u7528\u7684JavaScript\u5f15\u64ce\uff0c\u5e76\u9009\u62e9\u5176\u4e2d\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u6267\u884cJavaScript\u4ee3\u7801<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528PyExecJS\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u6267\u884cJavaScript\u4ee3\u7801\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import execjs<\/p>\n<h2><strong>JavaScript\u4ee3\u7801<\/strong><\/h2>\n<p>js_code = &quot;&quot;&quot;<\/p>\n<p>function add(x, y) {<\/p>\n<p>    return x + y;<\/p>\n<p>}<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<h2><strong>\u52a0\u8f7dJavaScript\u4ee3\u7801<\/strong><\/h2>\n<p>ctx = execjs.compile(js_code)<\/p>\n<h2><strong>\u6267\u884cJavaScript\u51fd\u6570<\/strong><\/h2>\n<p>result = ctx.call(&#39;add&#39;, 1, 2)<\/p>\n<p>print(result)  # \u8f93\u51fa: 3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<\/p>\n<p><p>PyExecJS\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u7b80\u5355\u6027\u548c\u7075\u6d3b\u6027\u3002\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06JavaScript\u4ee3\u7801\u5d4c\u5165\u5230Python\u9879\u76ee\u4e2d\uff0c\u5e76\u8c03\u7528JavaScript\u51fd\u6570\u3002PyExecJS\u81ea\u52a8\u9009\u62e9\u7cfb\u7edf\u4e2d\u53ef\u7528\u7684JavaScript\u5f15\u64ce\uff0c\u56e0\u6b64\u65e0\u9700\u624b\u52a8\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5229\u7528SELENIUM\u4e0eWEBDRIVER<\/p>\n<\/p>\n<p><p>Selenium\u662f\u4e00\u4e2a\u7528\u4e8e\u81ea\u52a8\u5316Web\u6d4f\u89c8\u5668\u64cd\u4f5c\u7684\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u63a7\u5236\u6d4f\u89c8\u5668\u6267\u884cJavaScript\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u914d\u7f6e<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5Selenium\u5e93\u548c\u5bf9\u5e94\u7684WebDriver\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662fChrome\u6d4f\u89c8\u5668\uff0c\u9700\u8981\u4e0b\u8f7dChromeDriver\u3002\u7136\u540e\uff0c\u901a\u8fc7pip\u5b89\u88c5Selenium\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install selenium<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528Selenium\u6267\u884cJavaScript<\/li>\n<\/ol>\n<p><p>Selenium\u63d0\u4f9b\u4e86<code>execute_script<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u6267\u884cJavaScript\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from selenium import webdriver<\/p>\n<h2><strong>\u521d\u59cb\u5316WebDriver<\/strong><\/h2>\n<p>driver = webdriver.Chrome()<\/p>\n<h2><strong>\u6253\u5f00\u4e00\u4e2a\u7a7a\u767d\u9875\u9762<\/strong><\/h2>\n<p>driver.get(&#39;about:blank&#39;)<\/p>\n<h2><strong>\u6267\u884cJavaScript\u4ee3\u7801<\/strong><\/h2>\n<p>result = driver.execute_script(&#39;return 1 + 2;&#39;)<\/p>\n<p>print(result)  # \u8f93\u51fa: 3<\/p>\n<h2><strong>\u5173\u95ed\u6d4f\u89c8\u5668<\/strong><\/h2>\n<p>driver.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<\/p>\n<p><p>Selenium\u7684\u4f18\u52bf\u5728\u4e8e\u80fd\u591f\u5728\u771f\u5b9e\u7684\u6d4f\u89c8\u5668\u73af\u5883\u4e2d\u6267\u884cJavaScript\u4ee3\u7801\uff0c\u8fd9\u5bf9\u4e8e\u9700\u8981\u6a21\u62df\u7528\u6237\u64cd\u4f5c\u6216\u6d4b\u8bd5Web\u5e94\u7528\u7a0b\u5e8f\u7684\u573a\u666f\u975e\u5e38\u6709\u7528\u3002\u4e0d\u8fc7\uff0c\u5b83\u9700\u8981\u5b89\u88c5\u6d4f\u89c8\u5668\u9a71\u52a8\uff0c\u5e76\u4e14\u8fd0\u884c\u901f\u5ea6\u76f8\u5bf9\u8f83\u6162\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u91c7\u7528NODE.JS\u4e0eSUBPROCESS\u6a21\u5757<\/p>\n<\/p>\n<p><p>Python\u7684subprocess\u6a21\u5757\u53ef\u4ee5\u7528\u6765\u8c03\u7528\u5916\u90e8\u7a0b\u5e8f\uff0c\u4f8b\u5982Node.js\uff0c\u4ece\u800c\u6267\u884cJavaScript\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5Node.js<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5Node.js\u3002\u60a8\u53ef\u4ee5\u4eceNode.js\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\uff0c\u6216\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528subprocess\u6a21\u5757\u6267\u884cJavaScript<\/li>\n<\/ol>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528subprocess\u6a21\u5757\u8c03\u7528Node.js\u6267\u884cJavaScript\u4ee3\u7801\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<h2><strong>JavaScript\u4ee3\u7801<\/strong><\/h2>\n<p>js_code = &quot;&quot;&quot;<\/p>\n<p>console.log(1 + 2);<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<h2><strong>\u4fdd\u5b58JavaScript\u4ee3\u7801\u5230\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;temp.js&#39;, &#39;w&#39;) as file:<\/p>\n<p>    file.write(js_code)<\/p>\n<h2><strong>\u4f7f\u7528Node.js\u6267\u884cJavaScript\u6587\u4ef6<\/strong><\/h2>\n<p>result = subprocess.run([&#39;node&#39;, &#39;temp.js&#39;], capture_output=True, text=True)<\/p>\n<p>print(result.stdout.strip())  # \u8f93\u51fa: 3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Node.js\u6267\u884cJavaScript\u4ee3\u7801\u7684\u4f18\u52bf\u5728\u4e8e\uff0cNode.js\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684JavaScript\u5f15\u64ce\uff0c\u9002\u5408\u6267\u884c\u590d\u6742\u548c\u9ad8\u6548\u7684JavaScript\u4ee3\u7801\u3002\u4f7f\u7528subprocess\u6a21\u5757\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06Python\u4e0eNode.js\u7ed3\u5408\u4f7f\u7528\uff0c\u4f46\u9700\u8981\u786e\u4fddNode.js\u5df2\u6b63\u786e\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528JS2PY\u5e93<\/p>\n<\/p>\n<p><p>Js2Py\u662f\u4e00\u4e2a\u7eafPython\u5e93\uff0c\u5b83\u53ef\u4ee5\u5c06JavaScript\u4ee3\u7801\u8f6c\u6362\u4e3aPython\u4ee3\u7801\uff0c\u5e76\u5728Python\u73af\u5883\u4e2d\u6267\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5Js2Py<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u901a\u8fc7pip\u5b89\u88c5Js2Py\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install js2py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528Js2Py\u6267\u884cJavaScript<\/li>\n<\/ol>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528Js2Py\u6267\u884cJavaScript\u4ee3\u7801\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import js2py<\/p>\n<h2><strong>JavaScript\u4ee3\u7801<\/strong><\/h2>\n<p>js_code = &quot;&quot;&quot;<\/p>\n<p>function add(x, y) {<\/p>\n<p>    return x + y;<\/p>\n<p>}<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<h2><strong>\u52a0\u8f7dJavaScript\u4ee3\u7801<\/strong><\/h2>\n<p>context = js2py.EvalJs()<\/p>\n<p>context.execute(js_code)<\/p>\n<h2><strong>\u6267\u884cJavaScript\u51fd\u6570<\/strong><\/h2>\n<p>result = context.add(1, 2)<\/p>\n<p>print(result)  # \u8f93\u51fa: 3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<\/p>\n<p><p>Js2Py\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u662f\u4e00\u4e2a\u7eafPython\u5b9e\u73b0\uff0c\u65e0\u9700\u5b89\u88c5\u5916\u90e8JavaScript\u5f15\u64ce\u3002Js2Py\u53ef\u4ee5\u5c06JavaScript\u4ee3\u7801\u8f6c\u6362\u4e3aPython\u4ee3\u7801\uff0c\u56e0\u6b64\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u96c6\u6210\u5ea6\u3002\u7136\u800c\uff0c\u5b83\u53ef\u80fd\u4e0d\u652f\u6301\u6240\u6709\u7684JavaScript\u7279\u6027\uff0c\u5e76\u4e14\u5728\u6267\u884c\u590d\u6742JavaScript\u4ee3\u7801\u65f6\u53ef\u80fd\u6027\u80fd\u8f83\u5dee\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u6a21\u62df\u548c\u6267\u884cJavaScript\u4ee3\u7801\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u60a8\u7684\u5177\u4f53\u9700\u6c42\uff0c\u4f8b\u5982\u6027\u80fd\u8981\u6c42\u3001\u73af\u5883\u9650\u5236\u548c\u4ee3\u7801\u590d\u6742\u6027\u7b49\u3002PyExecJS\u548cJs2Py\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u63a5\u53e3\uff0c\u9002\u5408\u5feb\u901f\u96c6\u6210\u548c\u6d4b\u8bd5\uff0c\u800cSelenium\u548cNode.js\u5219\u9002\u5408\u9700\u8981\u66f4\u9ad8\u6027\u80fd\u548c\u590d\u6742\u64cd\u4f5c\u7684\u573a\u666f\u3002\u6839\u636e\u60a8\u7684\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u6709\u6548\u5730\u6a21\u62dfJavaScript\u6587\u4ef6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6267\u884cJavaScript\u4ee3\u7801\uff1f<\/strong><br \/>\u5728Python\u4e2d\u6267\u884cJavaScript\u4ee3\u7801\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u5e93\uff0c\u5982<code>PyMiniRacer<\/code>\u548c<code>PyV8<\/code>\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86JavaScript\u5f15\u64ce\uff0c\u53ef\u4ee5\u8ba9\u4f60\u5728Python\u811a\u672c\u4e2d\u76f4\u63a5\u8fd0\u884cJavaScript\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>PyMiniRacer<\/code>\u65f6\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2aJavaScript\u4e0a\u4e0b\u6587\u5e76\u6267\u884cJavaScript\u51fd\u6570\u3002<\/p>\n<p><strong>Python\u53ef\u4ee5\u66ff\u4ee3JavaScript\u7684\u54ea\u4e9b\u529f\u80fd\uff1f<\/strong><br \/>\u867d\u7136Python\u548cJavaScript\u6709\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u4f46Python\u53ef\u4ee5\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u66ff\u4ee3JavaScript\u3002\u4f8b\u5982\uff0cPython\u53ef\u4ee5\u7528\u4e8e\u540e\u7aef\u5f00\u53d1\u3001\u6570\u636e\u5904\u7406\u548c\u81ea\u52a8\u5316\u811a\u672c\uff0c\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u8ba1\u7b97\u4efb\u52a1\u6216\u6570\u636e\u5206\u6790\u3002\u5bf9\u4e8e\u9700\u8981\u7f51\u9875\u4ea4\u4e92\u7684\u529f\u80fd\uff0cPython\u7684Flask\u6216Django\u6846\u67b6\u53ef\u4ee5\u521b\u5efa\u4e0eJavaScript\u76f8\u4f3c\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406JavaScript\u751f\u6210\u7684JSON\u6570\u636e\uff1f<\/strong><br \/>JavaScript\u901a\u5e38\u901a\u8fc7AJAX\u8bf7\u6c42\u6216API\u8fd4\u56deJSON\u6570\u636e\u3002\u5728Python\u4e2d\u5904\u7406\u8fd9\u4e9b\u6570\u636e\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>json<\/code>\u5e93\u3002\u901a\u8fc7<code>json.loads()<\/code>\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5c06JSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3aPython\u5b57\u5178\uff0c\u65b9\u4fbf\u540e\u7eed\u7684\u6570\u636e\u64cd\u4f5c\u548c\u5206\u6790\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>requests<\/code>\u5e93\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6API\u8fd4\u56de\u7684JSON\u6570\u636e\uff0c\u4fbf\u4e8e\u8fdb\u4e00\u6b65\u5904\u7406\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u6a21\u62df\u6d4f\u89c8\u5668\u884c\u4e3a\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u9700\u8981\u5728Python\u4e2d\u6a21\u62df\u6d4f\u89c8\u5668\u884c\u4e3a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Selenium<\/code>\u5e93\u3002\u8fd9\u4e2a\u5e93\u5141\u8bb8\u4f60\u63a7\u5236\u6d4f\u89c8\u5668\u5e76\u6267\u884cJavaScript\u4ee3\u7801\uff0c\u6a21\u62df\u7528\u6237\u5728\u7f51\u9875\u4e0a\u7684\u64cd\u4f5c\u3002\u901a\u8fc7\u7f16\u5199\u811a\u672c\uff0c\u4f60\u53ef\u4ee5\u8fdb\u884c\u7f51\u9875\u722c\u866b\u3001\u81ea\u52a8\u5316\u6d4b\u8bd5\u7b49\u4efb\u52a1\uff0c\u83b7\u53d6JavaScript\u52a8\u6001\u751f\u6210\u7684\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u6a21\u62df\u548c\u6267\u884cJavaScript\u6587\u4ef6\uff1a\u4f7f\u7528PyExecJS\u5e93\u3001\u5229\u7528Seleniu [&hellip;]","protected":false},"author":3,"featured_media":961987,"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\/961976"}],"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=961976"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/961976\/revisions"}],"predecessor-version":[{"id":961993,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/961976\/revisions\/961993"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/961987"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=961976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=961976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=961976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}