标签: javascript this
具有以下对象:
const parent = { name: "outside", child: { method: function() { // super(name, name); ? console.log(this); // logs the child object } }, }
如何访问子方法内的parent.name?
parent.name