{"id":53424,"date":"2024-12-03T12:44:45","date_gmt":"2024-12-03T04:44:45","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53424\/"},"modified":"2024-12-03T12:44:45","modified_gmt":"2024-12-03T04:44:45","slug":"%e6%89%a7%e8%a1%8c-this-say-%e9%81%87%e5%88%b0-unexpected-token-%e6%8a%a5%e9%94%99%e7%9a%84%e5%8e%9f%e5%9b%a0%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53424\/","title":{"rendered":"\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f<\/h1>\n<p>\u6b22\u8fce\u5404\u4f4d\u5c0f\u4f19\u4f34\u6765\u5230\u7c73\u4e91\uff0c\u76f8\u805a\u4e8e\u6b64\u90fd\u662f\u7f18\u54c8\u54c8\u54c8\uff01\u4eca\u5929\u6211\u7ed9\u5927\u5bb6\u5e26\u6765<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f\u300b<\/span>\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u8bb2\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\uff0c\u5982\u679c\u4f60\u5bf9<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u76f8\u5173\u7684\u77e5\u8bc6\u975e\u5e38\u611f\u5174\u8da3\u6216\u8005\u6b63\u5728\u81ea\u5b66\uff0c\u90fd\u53ef\u4ee5\u5173\u6ce8\u6211\uff0c\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\uff01\u5f53\u7136\uff0c\u6709\u4ec0\u4e48\u5efa\u8bae\u4e5f\u6b22\u8fce\u5728\u8bc4\u8bba\u7559\u8a00\u63d0\u51fa\uff01\u4e00\u8d77\u5b66\u4e60\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241130\/1732944646674aa306b8b59.jpg\" class=\"aligncenter\" title=\"\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f\u63d2\u56fe\" alt=\"\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u6267\u884c this.say \u4f1a\u9047\u5230 unexpected token \u62a5\u9519\uff0c\u539f\u56e0\u5206\u6790\u5982\u4e0b\uff1a<\/strong><\/p>\n<p>\u63d0\u4f9b\u7684\u4ee3\u7801\u4e2d\u5b9a\u4e49\u4e86 a \u548c b \u4e24\u4e2a\u51fd\u6570\uff0c\u5e76\u5728 b \u51fd\u6570\u4e2d\u8c03\u7528\u4e86 a \u51fd\u6570\u3002\u5177\u4f53\u6765\u8bf4\uff0cb \u51fd\u6570\u5b9a\u4e49\u4e86\u4e00\u4e2a eat \u65b9\u6cd5\uff0c\u8be5\u65b9\u6cd5\u5185\u90e8\u8c03\u7528\u4e86 a.call() \u65b9\u6cd5\u3002<\/p>\n<p>\u7136\u800c\uff0ca \u51fd\u6570\u5185\u5b9a\u4e49\u4e86\u4e00\u4e2a say \u65b9\u6cd5\uff0c\u5e76\u6ca1\u6709\u5728 b \u51fd\u6570\u4e2d\u88ab\u8c03\u7528\u3002\u56e0\u6b64\uff0c\u5f53\u6267\u884c a.call(b) \u65f6\uff0cthis \u5c06\u6307\u5411 b \u5bf9\u8c61\uff0c\u4f46\u5176\u4e2d\u5e76\u6ca1\u6709 say \u65b9\u6cd5\uff0c\u4ece\u800c\u4f1a\u5bfc\u81f4\u610f\u5916\u4ee4\u724c\u9519\u8bef\u3002<\/p>\n<p>\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u9700\u8981\u5728 b \u51fd\u6570\u5185\u90e8\u8c03\u7528 a \u51fd\u6570\u7684 say \u65b9\u6cd5\u3002\u53ef\u4ee5\u5728 eat \u65b9\u6cd5\u4e2d\u5c06\u4ee5\u4e0b\u4ee3\u7801\u884c\u6dfb\u52a0\u5230 a.call(b) \u8c03\u7528\u4e4b\u540e\uff1a<\/p>\n<pre>a.say.call(b);<\/pre>\n<p>\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u7ed3\u675f\uff0c\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u300a\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f\u300b\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u7ed9\u5927\u5bb6\u5206\u4eab\u66f4\u591a\u6587\u7ae0\u77e5\u8bc6\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Spring\u4e2d@Transactional\u4e8b\u52a1\u4ec0\u4e48\u65f6\u5019\u63d0\u4ea4\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f \u6b22\u8fce\u5404\u4f4d\u5c0f\u4f19\u4f34\u6765\u5230\u7c73\u4e91\uff0c\u76f8\u805a\u4e8e\u6b64\u90fd\u662f\u7f18\u54c8\u54c8\u54c8\uff01\u4eca\u5929\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u300a\u6267\u884c this.say \u9047\u5230 unexpected token \u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\uff1f\u300b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u8bb2\u5230\u7b49\u7b49\u77e5\u8bc6\uff0c\u5982\u679c\u4f60\u5bf9\u6587\u7ae0\u76f8\u5173\u7684\u77e5\u8bc6\u975e\u5e38\u611f\u5174\u8da3\u6216\u8005\u6b63\u5728\u81ea\u5b66\uff0c\u90fd\u53ef\u4ee5\u5173\u6ce8\u6211\uff0c\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\uff01\u5f53\u7136\uff0c\u6709\u4ec0\u4e48\u5efa\u8bae\u4e5f\u6b22\u8fce\u5728\u8bc4\u8bba\u7559\u8a00\u63d0\u51fa\uff01\u4e00\u8d77\u5b66\u4e60\uff01 \u6267\u884c this.say \u4f1a\u9047\u5230 unexpected token \u62a5\u9519\uff0c\u539f\u56e0\u5206\u6790\u5982\u4e0b\uff1a \u63d0\u4f9b\u7684\u4ee3\u7801\u4e2d\u5b9a\u4e49\u4e86 a \u548c b \u4e24\u4e2a\u51fd\u6570\uff0c\u5e76\u5728 b \u51fd\u6570\u4e2d\u8c03\u7528\u4e86 a \u51fd\u6570\u3002\u5177\u4f53\u6765\u8bf4\uff0cb \u51fd\u6570\u5b9a\u4e49\u4e86\u4e00\u4e2a eat \u65b9\u6cd5\uff0c\u8be5\u65b9\u6cd5\u5185\u90e8\u8c03\u7528\u4e86 a.call() \u65b9\u6cd5\u3002 \u7136\u800c\uff0ca \u51fd\u6570\u5185\u5b9a\u4e49\u4e86\u4e00\u4e2a say \u65b9\u6cd5\uff0c\u5e76\u6ca1\u6709\u5728 b \u51fd\u6570\u4e2d\u88ab\u8c03\u7528\u3002\u56e0\u6b64\uff0c\u5f53\u6267\u884c a.call(b) \u65f6\uff0cthis \u5c06\u6307\u5411 b \u5bf9\u8c61\uff0c\u4f46\u5176\u4e2d\u5e76\u6ca1\u6709 say \u65b9\u6cd5\uff0c\u4ece\u800c\u4f1a\u5bfc\u81f4\u610f\u5916\u4ee4\u724c\u9519\u8bef\u3002 \u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u9700\u8981\u5728 b \u51fd\u6570\u5185\u90e8\u8c03\u7528 a \u51fd\u6570\u7684 say \u65b9\u6cd5\u3002\u53ef\u4ee5\u5728 eat \u65b9\u6cd5\u4e2d\u5c06\u4ee5\u4e0b\u4ee3\u7801\u884c\u6dfb\u52a0\u5230 a.call(b) [&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-53424","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53424","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=53424"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53424\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}