直接上试题
1 <script type="text/javascript"> 2 var output = '123js'; 3 var object = { 4 output : "1234", 5 get : function(){ 6 return function(){ 7 return this.output 8 } 9 } 10 } 11 console.log(object.get()()) 12 </script>
答案是:123js 你猜对了吗