{"id":53459,"date":"2024-12-03T15:23:39","date_gmt":"2024-12-03T07:23:39","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53459\/"},"modified":"2024-12-03T15:23:39","modified_gmt":"2024-12-03T07:23:39","slug":"javascript-%e4%b8%ad%e7%9a%84this%e5%85%b3%e9%94%ae%e5%ad%97%e5%88%b0%e5%ba%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53459\/","title":{"rendered":"JavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>JavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span>    <\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u5411\u5927\u5bb6\u4ecb\u7ecd\u300aJavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f\u300b\uff0c\u4e3b\u8981\u5305\u62ec\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241130\/1732962836674aea14305d9.jpg\" class=\"aligncenter\" title=\"JavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f\u63d2\u56fe\" alt=\"JavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f\u63d2\u56fe\" \/><\/p>\n<h2> \u5173\u952e\u89c1\u89e3\uff1a <\/h2>\n<ul>\n<li>\n<p><strong>\u5168\u5c40\u8303\u56f4<\/strong>\uff1a\u5728\u5168\u5c40\u4e0a\u4e0b\u6587\u4e2d\uff0cthis \u6307\u7684\u662f\u5168\u5c40\u5bf9\u8c61\uff08\u4f8b\u5982\uff0c\u7a97\u53e3\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u51fd\u6570\u4e0a\u4e0b\u6587<\/strong>\uff1a\u5728\u5e38\u89c4\u51fd\u6570\u4e2d\uff0c\u8fd9\u5728\u4e25\u683c\u548c\u975e\u4e25\u683c\u6a21\u5f0f\u4e0b\u8868\u73b0\u4e0d\u540c\uff0c\u8fd4\u56de\u672a\u5b9a\u4e49\u6216\u5168\u5c40\u5bf9\u8c61\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u65b9\u6cd5<\/strong>\uff1a\u5728\u5bf9\u8c61\u65b9\u6cd5\u4e2d\uff0cthis \u6307\u5bf9\u8c61\u672c\u8eab\uff0c\u5141\u8bb8\u8bbf\u95ee\u5176\u5c5e\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u7528\u3001\u5e94\u7528\u3001\u7ed1\u5b9a<\/strong>\uff1a\u8fd9\u4e9b\u65b9\u6cd5\u5141\u8bb8\u901a\u8fc7\u66f4\u6539 this \u4e0a\u4e0b\u6587\u6765\u5728\u5bf9\u8c61\u4e4b\u95f4\u5171\u4eab\u51fd\u6570\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7bad\u5934\u51fd\u6570<\/strong>\uff1a\u7bad\u5934\u51fd\u6570\u6ca1\u6709\u81ea\u5df1\u7684 this\uff0c\u800c\u662f\u4ece\u5176\u5c01\u95ed\u7684\u8bcd\u6cd5\u4e0a\u4e0b\u6587\u7ee7\u627f\u5b83\u3002<\/p>\n<\/li>\n<li>\n<p><strong>dom \u5143\u7d20<\/strong>\uff1a\u5728 dom \u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u4e2d\uff0c\u8fd9\u662f\u6307\u89e6\u53d1\u4e8b\u4ef6\u7684 html \u5143\u7d20\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2> \u5168\u7403\u8303\u56f4 <\/h2>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u6765\u770b\u770b\u201cthis\u201d\u5728\u5168\u5c40\u8303\u56f4\u5185\u7684\u884c\u4e3a\u65b9\u5f0f\u3002\u5728 javascript \u4e2d\uff0c\u5f53\u60a8\u5728\u4ee3\u7801\u9876\u5c42\u5f15\u7528\u201cthis\u201d\u65f6\uff0c\u5b83\u6307\u7684\u662f\u5168\u5c40\u5bf9\u8c61\u3002\u5728\u7f51\u7edc\u6d4f\u89c8\u5668\u4e2d\uff0c\u8fd9\u4e2a\u5168\u5c40\u5bf9\u8c61\u662f<strong>\u7a97\u53e3<\/strong>\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>    console.log(this); \/\/ outputs: window\n<\/pre>\n<p>\u7136\u800c\uff0c\u5728 node.js \u4e2d\uff0c\u5168\u5c40\u5bf9\u8c61\u662f\u4e0d\u540c\u7684\uff0c\u88ab\u79f0\u4e3a <strong>global<\/strong>.<\/p>\n<p>\u56e0\u6b64\uff0c\u201cthis\u201d\u7684\u503c\u53ef\u80fd\u4f1a\u6839\u636e javascript \u4ee3\u7801\u6267\u884c\u7684\u73af\u5883\u800c\u53d8\u5316\u3002<\/p>\n<hr>\n<h2> \u7406\u89e3\u201cthis\u201d\u5185\u90e8\u51fd\u6570 <\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u8ba9\u6211\u4eec\u63a2\u8ba8\u4e00\u4e0b\u201cthis\u201d\u5728\u51fd\u6570\u5185\u90e8\u7684\u884c\u4e3a\u65b9\u5f0f\u3002\u5f53\u4f60\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u5e76\u8c03\u7528\u5b83\u65f6\uff0c\u8be5\u51fd\u6570\u5185\u201cthis\u201d\u7684\u503c\u5c06\u53d6\u51b3\u4e8e\u8be5\u51fd\u6570\u7684\u8c03\u7528\u65b9\u5f0f\u3002<\/p>\n<p>\u5728\u975e\u4e25\u683c\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u60a8\u5728\u51fd\u6570\u4e2d\u8bb0\u5f55\u201cthis\u201d\uff0c\u5b83\u4e5f\u4f1a\u5f15\u7528\u5168\u5c40\u5bf9\u8c61\uff1a<\/p>\n<pre>    function test() {\n        console.log(this);\n    }\n    test(); \/\/ outputs: window\n<\/pre>\n<p>\u4f46\u662f\uff0c\u5982\u679c\u60a8\u901a\u8fc7\u6dfb\u52a0\u201cuse strict\u201d\u6765\u542f\u7528\u4e25\u683c\u6a21\u5f0f\uff1b\u5728\u51fd\u6570\u7684\u9876\u90e8\uff0c\u201cthis\u201d\u5c06\u662f<strong>\u672a\u5b9a\u4e49<\/strong>\uff1a<\/p>\n<pre>    'use strict';\n    function test() {\n        console.log(this);\n    }\n    test(); \/\/ outputs: undefined\n<\/pre>\n<p>\u6b64\u884c\u4e3a\u662f <strong>this \u66ff\u6362<\/strong> \u7684\u7ed3\u679c\uff0c\u5b83\u6307\u51fa\u5982\u679c\u201cthis\u201d\u5728\u975e\u4e25\u683c\u6a21\u5f0f\u4e0b\u4e3a null \u6216\u672a\u5b9a\u4e49\uff0c\u5219\u5b83\u9ed8\u8ba4\u4e3a\u5168\u5c40\u5bf9\u8c61\u3002<\/p>\n<hr>\n<h2> \u4e25\u683c\u6a21\u5f0f\u4e0e\u975e\u4e25\u683c\u6a21\u5f0f <\/h2>\n<p>\u7406\u89e3\u4e25\u683c\u6a21\u5f0f\u548c\u975e\u4e25\u683c\u6a21\u5f0f\u4e4b\u95f4\u7684\u533a\u522b\u81f3\u5173\u91cd\u8981\u3002\u5728\u975e\u4e25\u683c\u6a21\u5f0f\u4e0b\uff0c\u201cthis\u201d\u7684\u503c\u53ef\u4ee5\u662f\u5168\u5c40\u5bf9\u8c61\uff0c\u4f46\u5728\u4e25\u683c\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u6ca1\u6709\u663e\u5f0f\u7ed1\u5b9a\u5230\u5bf9\u8c61\uff0c\u5b83\u5c31\u4f1a\u53d8\u6210\u672a\u5b9a\u4e49\u3002<\/p>\n<hr>\n<p>\u56de\u987e\u4e00\u4e0b\uff1a<\/p>\n<ul>\n<li> \u5728\u5168\u5c40\u7a7a\u95f4\u4e2d\uff0c\u201cthis\u201d\u6307\u7684\u662f\u5168\u5c40\u5bf9\u8c61\u3002<\/li>\n<li> \u5728\u51fd\u6570\u4e2d\uff0c\u201cthis\u201d\u5728\u975e\u4e25\u683c\u6a21\u5f0f\u4e0b\u53ef\u4ee5\u5f15\u7528\u5168\u5c40\u5bf9\u8c61\uff0c\u4f46\u5728\u4e25\u683c\u6a21\u5f0f\u4e0b\u672a\u5b9a\u4e49\u3002<\/li>\n<\/ul>\n<hr>\n<h2> \u201cthis\u201d\u5728\u5bf9\u8c61\u65b9\u6cd5\u4e2d\u5982\u4f55\u5de5\u4f5c <\/h2>\n<p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u8ba8\u8bba\u201cthis\u201d\u5728\u5bf9\u8c61\u65b9\u6cd5\u4e2d\u7684\u884c\u4e3a\u65b9\u5f0f\u3002\u5f53\u51fd\u6570\u5728\u5bf9\u8c61\u5185\u90e8\u5b9a\u4e49\u65f6\uff0c\u5b83\u88ab\u89c6\u4e3a\u65b9\u6cd5\uff0c\u5e76\u4e14\u5728\u8c03\u7528\u8be5\u65b9\u6cd5\u65f6\u201cthis\u201d\u5c06\u5f15\u7528\u8be5\u5bf9\u8c61\uff1a<\/p>\n<pre>    const obj = {\n        name: 'my object',\n        getname: function() {\n            console.log(this.name);\n        }\n    };\n    obj.getname(); \/\/ outputs: my object\n<\/pre>\n<p>\u8fd9\u91cc\uff0c\u201cthis\u201d\u6307\u7684\u662f\u201cobj\u201d\uff0c\u5373\u5b9a\u4e49\u8be5\u65b9\u6cd5\u7684\u5bf9\u8c61\u3002<\/p>\n<hr>\n<h2> \u901a\u8fc7 call\u3001apply \u548c bind \u5171\u4eab\u65b9\u6cd5 <\/h2>\n<p>\u4e3a\u4e86\u5728\u5bf9\u8c61\u4e4b\u95f4\u5171\u4eab\u65b9\u6cd5\uff0cjavascript \u63d0\u4f9b\u4e86\u4e09\u4e2a\u51fd\u6570\uff1a<strong>call<\/strong>\u3001<strong>apply<\/strong> \u548c <strong>bind<\/strong>\u3002\u5176\u4e2d\u6bcf\u4e00\u4e2a\u90fd\u5141\u8bb8\u60a8\u663e\u5f0f\u8bbe\u7f6e\u201cthis\u201d\u7684\u503c\uff1a<\/p>\n<ul>\n<li> <strong>call:<\/strong> \u4f7f\u7528\u6307\u5b9a\u7684 <strong>this<\/strong> \u503c\u548c\u53c2\u6570\u8c03\u7528\u51fd\u6570\u3002<\/li>\n<li> <strong>apply:<\/strong> \u4e0e call \u7c7b\u4f3c\uff0c\u4f46\u63a5\u53d7\u53c2\u6570\u6570\u7ec4\u3002<\/li>\n<li> <strong>bind:<\/strong> \u8fd4\u56de\u5177\u6709\u6307\u5b9a <strong>this<\/strong> \u503c\u7684\u65b0\u51fd\u6570\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>    const student1 = {\n        name: 'alice',\n        printname: function() {\n            console.log(this.name);\n        }\n    };\n\n    const student2 = {\n        name: 'bob'\n    };\n\n    \/\/ using call\n    student1.printname.call(student2); \/\/ outputs: bob\n<\/pre>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cprintname\u4e2d\u7684\u201cthis\u201d\u6307\u7684\u662fstudent2\u800c\u4e0d\u662fstudent1\u3002<\/p>\n<hr>\n<h2> \u7bad\u5934\u51fd\u6570\u548c\u201cthis\u201d <\/h2>\n<p>\u7bad\u5934\u51fd\u6570\u7684\u884c\u4e3a\u4e0e\u4f20\u7edf\u51fd\u6570\u4e0d\u540c\u3002\u4ed6\u4eec\u6ca1\u6709\u81ea\u5df1\u7684\u201c\u8fd9\u4e2a\u201d\u4e0a\u4e0b\u6587\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u4ece<strong>\u5c01\u95ed\u7684\u8bcd\u6c47\u4e0a\u4e0b\u6587<\/strong>\u7ee7\u627f\u201cthis\u201d\u3002\u8fd9\u610f\u5473\u7740\u7bad\u5934\u51fd\u6570\u5185\u7684\u201cthis\u201d\u4e0e\u51fd\u6570\u5916\u7684\u201cthis\u201d\u6307\u7684\u662f\u76f8\u540c\u7684\u503c\uff1a<\/p>\n<pre>    const obj = {\n        value: 42,\n        getvalue: function() {\n            const arrowfunc = () =&gt; {\n                console.log(this.value);\n            };\n            arrowfunc();\n        }\n    };\n    obj.getvalue(); \/\/ outputs: 42\n<\/pre>\n<p>\u8fd9\u91cc\uff0c\u7bad\u5934\u51fd\u6570\u4e2d\u7684\u201cthis\u201d\u6307\u7684\u662f\u201cobj\u201d\u5bf9\u8c61\uff0c\u6f14\u793a\u4e86\u7bad\u5934\u51fd\u6570\u5982\u4f55\u4ece\u5176\u5c01\u95ed\u4e0a\u4e0b\u6587\u4e2d\u6355\u83b7\u201cthis\u201d\u503c\u3002<\/p>\n<hr>\n<h2> dom \u4e2d\u7684\u201cthis\u201d <\/h2>\n<p>\u6700\u540e\uff0c\u5728\u4f7f\u7528 dom \u65f6\uff0c\u201cthis\u201d\u53ef\u4ee5\u6307\u89e6\u53d1\u4e8b\u4ef6\u7684 html \u5143\u7d20\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>    document.getElementById('myButton').onclick = function() {\n        console.log(this); \/\/ Refers to the button element\n    };\n<\/pre>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5f53\u5355\u51fb\u6309\u94ae\u65f6\uff0c\u201cthis\u201d\u5c06\u5f15\u7528\u6309\u94ae\u5143\u7d20\u672c\u8eab\u3002<\/p>\n<hr>\n<p>\u611f\u8c22\u60a8\u7684\u9605\u8bfb\uff0c\u5982\u679c\u60a8\u53d1\u73b0\u672c\u6307\u5357\u6709\u5e2e\u52a9\uff0c\u8bf7\u4e0e\u5176\u4ed6\u5f00\u53d1\u4eba\u5458\u5206\u4eab\uff0c\u5e76\u7ee7\u7eed\u7ec3\u4e60\u4ee5\u5de9\u56fa\u60a8\u5bf9 javascript \u4e2d\u201cthis\u201d\u7684\u7406\u89e3\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u300aJavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f\u300b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8e\u7684\u8d44\u6599\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n<p>      \u7248\u672c\u58f0\u660e \u672c\u6587\u8f6c\u8f7d\u4e8e\uff1adev.to \u5982\u6709\u4fb5\u72af\uff0c\u8bf7\u8054\u7cfb\u5220\u9664    <\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Android DataBinding\u89c6\u56fe\u4e0d\u66f4\u65b0\u600e\u4e48\u529e\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f \u6536\u85cf \u672c\u7bc7\u6587\u7ae0\u5411\u5927\u5bb6\u4ecb\u7ecd\u300aJavaScript \u4e2d\u7684\u201cthis\u201d\u5173\u952e\u5b57\u5230\u5e95\u662f\u4ec0\u4e48\uff1f\u300b\uff0c\u4e3b\u8981\u5305\u62ec\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u3002 \u5173\u952e\u89c1\u89e3\uff1a \u5168\u5c40\u8303\u56f4\uff1a\u5728\u5168\u5c40\u4e0a\u4e0b\u6587\u4e2d\uff0cthis \u6307\u7684\u662f\u5168\u5c40\u5bf9\u8c61\uff08\u4f8b\u5982\uff0c\u7a97\u53e3\uff09\u3002 \u51fd\u6570\u4e0a\u4e0b\u6587\uff1a\u5728\u5e38\u89c4\u51fd\u6570\u4e2d\uff0c\u8fd9\u5728\u4e25\u683c\u548c\u975e\u4e25\u683c\u6a21\u5f0f\u4e0b\u8868\u73b0\u4e0d\u540c\uff0c\u8fd4\u56de\u672a\u5b9a\u4e49\u6216\u5168\u5c40\u5bf9\u8c61\u3002 \u65b9\u6cd5\uff1a\u5728\u5bf9\u8c61\u65b9\u6cd5\u4e2d\uff0cthis \u6307\u5bf9\u8c61\u672c\u8eab\uff0c\u5141\u8bb8\u8bbf\u95ee\u5176\u5c5e\u6027\u3002 \u8c03\u7528\u3001\u5e94\u7528\u3001\u7ed1\u5b9a\uff1a\u8fd9\u4e9b\u65b9\u6cd5\u5141\u8bb8\u901a\u8fc7\u66f4\u6539 this \u4e0a\u4e0b\u6587\u6765\u5728\u5bf9\u8c61\u4e4b\u95f4\u5171\u4eab\u51fd\u6570\u3002 \u7bad\u5934\u51fd\u6570\uff1a\u7bad\u5934\u51fd\u6570\u6ca1\u6709\u81ea\u5df1\u7684 this\uff0c\u800c\u662f\u4ece\u5176\u5c01\u95ed\u7684\u8bcd\u6cd5\u4e0a\u4e0b\u6587\u7ee7\u627f\u5b83\u3002 dom \u5143\u7d20\uff1a\u5728 dom \u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u4e2d\uff0c\u8fd9\u662f\u6307\u89e6\u53d1\u4e8b\u4ef6\u7684 html \u5143\u7d20\u3002 \u5168\u7403\u8303\u56f4 \u9996\u5148\uff0c\u6211\u4eec\u6765\u770b\u770b\u201cthis\u201d\u5728\u5168\u5c40\u8303\u56f4\u5185\u7684\u884c\u4e3a\u65b9\u5f0f\u3002\u5728 javascript \u4e2d\uff0c\u5f53\u60a8\u5728\u4ee3\u7801\u9876\u5c42\u5f15\u7528\u201cthis\u201d\u65f6\uff0c\u5b83\u6307\u7684\u662f\u5168\u5c40\u5bf9\u8c61\u3002\u5728\u7f51\u7edc\u6d4f\u89c8\u5668\u4e2d\uff0c\u8fd9\u4e2a\u5168\u5c40\u5bf9\u8c61\u662f\u7a97\u53e3\u3002 \u4f8b\u5982\uff1a console.log(this); \/\/ outputs: window \u7136\u800c\uff0c\u5728 node.js \u4e2d\uff0c\u5168\u5c40\u5bf9\u8c61\u662f\u4e0d\u540c\u7684\uff0c\u88ab\u79f0\u4e3a global. \u56e0\u6b64\uff0c\u201cthis\u201d\u7684\u503c\u53ef\u80fd\u4f1a\u6839\u636e javascript \u4ee3\u7801\u6267\u884c\u7684\u73af\u5883\u800c\u53d8\u5316\u3002 \u7406\u89e3\u201cthis\u201d\u5185\u90e8\u51fd\u6570 \u63a5\u4e0b\u6765\uff0c\u8ba9\u6211\u4eec\u63a2\u8ba8\u4e00\u4e0b\u201cthis\u201d\u5728\u51fd\u6570\u5185\u90e8\u7684\u884c\u4e3a\u65b9\u5f0f\u3002\u5f53\u4f60\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u5e76\u8c03\u7528\u5b83\u65f6\uff0c\u8be5\u51fd\u6570\u5185\u201cthis\u201d\u7684\u503c\u5c06\u53d6\u51b3\u4e8e\u8be5\u51fd\u6570\u7684\u8c03\u7528\u65b9\u5f0f\u3002 \u5728\u975e\u4e25\u683c\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u60a8\u5728\u51fd\u6570\u4e2d\u8bb0\u5f55\u201cthis\u201d\uff0c\u5b83\u4e5f\u4f1a\u5f15\u7528\u5168\u5c40\u5bf9\u8c61\uff1a function test() { console.log(this); } test(); \/\/ outputs: window \u4f46\u662f\uff0c\u5982\u679c\u60a8\u901a\u8fc7\u6dfb\u52a0\u201cuse strict\u201d\u6765\u542f\u7528\u4e25\u683c\u6a21\u5f0f\uff1b\u5728\u51fd\u6570\u7684\u9876\u90e8\uff0c\u201cthis\u201d\u5c06\u662f\u672a\u5b9a\u4e49\uff1a &#8216;use strict&#8217;; function [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-53459","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53459","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=53459"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53459\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}