我是 Javascript 的初學(xué)者,我有以下代碼:let address = { street: 'Brighton', city: 'NY', zipcode: 121212, showAddress() { console.log(street + ' ' + city + ' ' + zipcode);// here is the issue I cannot understand why }}let address1 = address.showAddress(); 上面的代碼顯示一個(gè)錯(cuò)誤未捕獲的 ReferenceError:街道未在 Object.showAddress 中定義
javascript中未定義街道錯(cuò)誤
ibeautiful
2021-06-09 13:41:12