标签:type 开会 func his div return rip asc window
1 <script type="text/javascript"> 2 var num = 20; 3 var obj = { 4 num: 30, 5 fn: (function(num){ 6 this.num == 3; 7 num += 15; 8 var num = 45; 9 return function() { 10 this.num *= 4; 11 num += 20; 12 console.log(num); 13 } 14 })(num) 15 }; 16 var fn = obj.fn; 17 fn(); 18 obj.fn(); 19 console.log(window.num); 20 console.log(obj.num); 21 </script>
标签:type 开会 func his div return rip asc window
原文地址:http://www.cnblogs.com/lyw-D/p/7892625.html