YoungSx
8/16/2017 - 10:07 AM

javascript函数变量

javascript函数变量

var a = {
    name: 'ysx',
    papa: function (
        return this.name
    )
}

var b = a.papa

console.log(b()) // 不能输出 'yangshangxin' 因为 b 没有 name