我想知道为什么子范围在使用像字符串这样的文字类型时会创建一个新属性,而在使用对象表示法时它不会创建一个新对象,下面的示例将阐明
paretscope.aString = 'parent string'
//now initialize a string in child scope so it will create a new property in child scope
childScope.aString = 'child string'
paretscope.model={key:"abc"}
// now i modify an object property in child scope but it will not create
// a new object in child scope instead it will modify object in parent scope
childscope.model.key ="xyz"