摘要: 今天看到了一道很有意思的面试题,在听完老师的讲解后,我决定也和大家讲讲这道题 var x = 0 function foo(x, y = function() { x = 3; console.log(x) }) { console.log(x) var x = 2 y() console.log( 阅读全文
posted @ 2021-12-10 09:24 CodeSpirit 阅读(266) 评论(0) 推荐(0) 编辑