我是JavaScript的初学者,我发现一个概念非常困惑。考虑以下代码:varperson={firstName:"Penelope",lastName:"Barrymore",//Sincethe"this"keywordisusedinsidetheshowFullNamemethodbelow,andtheshowFullNamemethodisdefinedonthepersonobject,//"this"willhavethevalueofthepersonobjectbecausethepersonobjectwillinvokeshowFullName()showF
我是JavaScript的初学者,我发现一个概念非常困惑。考虑以下代码:varperson={firstName:"Penelope",lastName:"Barrymore",//Sincethe"this"keywordisusedinsidetheshowFullNamemethodbelow,andtheshowFullNamemethodisdefinedonthepersonobject,//"this"willhavethevalueofthepersonobjectbecausethepersonobjectwillinvokeshowFullName()showF