{"id":87620,"date":"2020-05-12T02:15:03","date_gmt":"2020-05-11T18:15:03","guid":{"rendered":"http:\/\/4563.org\/?p=87620"},"modified":"2020-05-12T02:15:03","modified_gmt":"2020-05-11T18:15:03","slug":"%e5%8c%bf%e5%90%8d%e5%87%bd%e6%95%b0-function-anonymous-%e5%92%8c%e7%9b%b4%e6%8e%a5%e5%86%99-function-%e6%9c%89%e5%8c%ba%e5%88%ab%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=87620","title":{"rendered":"\u533f\u540d\u51fd\u6570 function anonymous( ) \u548c\u76f4\u63a5\u5199 function() \u6709\u533a\u522b\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u533f\u540d\u51fd\u6570 function anonymous( ) \u548c\u76f4\u63a5\u5199 function() \u6709\u533a\u522b\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lisisi <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u62a5\u9519\u7684\u65f6\u5019\u6709\u533a\u522b\uff0c\u524d\u8005\u80fd\u8ffd\u8e2a\u5230\u51fd\u6570\u540d\u79f0      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1459778\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : silaike <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             var a = function a() {<br \/> console.log(a)<br \/>}<br \/>var b = a<br \/>a = 1<br \/>b() \/\/ \u0192 a()<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>var a = function() {<br \/> console.log(a)<br \/>}<br \/>var b = a<br \/>a = 1<br \/>b() \/\/ 1<\/p>\n<p>\u4e0d\u8fc7\u4e00\u822c\u6ca1\u4eba\u8fd9\u4e48\u5199,\u4e5f\u5c31\u9762\u8bd5\u53ef\u80fd\u4f1a\u8003.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459779\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rabbbit <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u95ed\u5305                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459780\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiaoriri666 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             var a = function factorial(n) { return n &lt;= 1 ? 1 : n * factorial(n &#8211; 1) };<\/p>\n<p>\u4e3a\u533f\u540d\u51fd\u6570\u547d\u540d\uff0c\u53ef\u4ee5\u5728\u8fd9\u4e2a\u51fd\u6570\u5185\u90e8\u9012\u5f52\u8c03\u7528\u81ea\u8eab\u63d0\u4f9b\u4e00\u4e2a\u8bbf\u95ee\u7684\u65b9\u5f0f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459781\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l1nyanm1ng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bcf\u6b21\u5199\u5230\u533f\u540d\u51fd\u6570\uff0ceslint \u90fd\u4f1a\u8b66\u544a\u4e0d\u8981\u533f\u540d\uff0c\u4f46\u6709\u4e0d\u60f3\u8d77\u540d\u5b57\uff0c\u5c31\u7528\u7bad\u5934\u51fd\u6570\u4ee3\u66ff\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459782\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhw2590582 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &gt; (function anonymous(){}).name<br \/>&lt; &#8220;anonymous&#8221;<br \/>&gt; (function (){}).name<br \/>&gt; &#8220;&#8221;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459783\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noe132 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u5f15\u7528\u81ea\u5df1\u5b9e\u73b0\u9012\u5f52\u8c03\u7528\uff0c\u5e76\u4e14\u4e0d\u4f1a\u628a\u51fd\u6570\u540d\u66b4\u9732\u7ed9\u5f53\u524d\u4f5c\u7528\u57df\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459784\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DOLLOR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u540e\u8005\u5f88\u6b63\u7ecf\uff0c\u4f46\u662f\u5f88\u4e0d javascript \u98ce                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459785\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u5565\u4f1a\u6709\u8fd9\u79cd\u95ee\u9898&#8230;.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459786\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CodingNaux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5177\u540d\u51fd\u6570\u53ef\u4ee5\u5728\u51fd\u6570\u91cc\u8fdb\u884c\u9012\u5f52\u8c03\u7528\uff1b\u5177\u540d\u51fd\u6570\u53ef\u4ee5\u5728\u51fd\u6570\u6808\u62a5\u9519\u65f6\u663e\u793a\u540d\u5b57 \u6069\u4e0d\u662f at anonymours (xxx.js 53)<br \/>\u6765\u81ea You don&#8217;t know js                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459787\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : azcvcza <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/lizhongzhen11\/lizz-blog\/issues\/82<\/p>\n<p>\u4e0e\u8fd9\u4e2a\u51fd\u6570\u540d\u95ee\u9898\u6709\u70b9\u5173\u7cfb                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1459788\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lizz666 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e2a\u95ee\u9898\uff0cfunction anonymous( ) \u662f\u4e0d\u662f\u5c31\u4e0d\u7b97\u533f\u540d\u51fd\u6570\u4e86\u3002\u3002\u3002<\/p>\n<p>&gt; (function(){haha})()<br \/>Uncaught ReferenceError: haha is not defined<br \/> at repl:1:13<br \/>&gt; (function a(){haha})()<br \/>Uncaught ReferenceError: haha is not defined<br \/> at a (repl:1:15)<br \/>&gt; (a=function(){haha})()<br \/>Uncaught ReferenceError: haha is not defined<br \/> at a (repl:1:15)<\/p>\n<p>\u6ce8\u610f\u770b\u9519\u8bef\u63d0\u793a\u7684\u5185\u5bb9\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u540e\u9762\u4e24\u4e2a\u4f1a\u544a\u8bc9\u4f60\u662f\u201c\u51fd\u6570 a\u201d\u51fa\u4e86\u9519\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u533f\u540d\u51fd\u6570 function ano&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/87620"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87620"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/87620\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87620"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}