SOURCE

var obj = {
    say: function() {
        alert(123)
    },
    ajax: function() {
        var t = this;
        $.ajax({
            url: 'https://www.easy-mock.com/mock/5b449321f6c1cd1fec447a13/house/getHouse',
            success: function(res) {
                console.log(JSON.stringify(res.address))
                this.say()
            }
        })
    },
    timer: function() {
        setTimeout(this.getThis, 1000)
    },
    getThis: function() {
        console.log(this)
    }
}
console.log('start...')
obj.timer()
obj.ajax().bind(this)
console 命令行工具 X clear

                    
>
console