我试图从子对象调用父属性
var parentObj = { attr1:1, attr2:2, childObj:{ method1:function(){ return this.attr1 * this.attr2; } } }
但它不起作用.
javascript
javascript ×1