美文网首页
2021-05-21 先来一道经典的阿里面试题

2021-05-21 先来一道经典的阿里面试题

作者: 半眼鱼 | 来源:发表于2021-05-21 11:28 被阅读0次
    var length = 88;
    
        function test() {
            console.log(this.length)
        }
        var obj = {
            length: 99,
            action: function(test) {
                test();
                arguments[0]();
            }
        }
        obj.action(test, [1, 2, 3]);
    

    解析过程:


    image.png

    相关文章

      网友评论

          本文标题:2021-05-21 先来一道经典的阿里面试题

          本文链接:https://www.haomeiwen.com/subject/ydhwjltx.html