課程
/前端開發
/JavaScript
/JavaScript深入淺出
let?a={n:1}; let?b=a; a.x=a={n:2} console.log(a)????//{n:2} console.log(a.x)??//undefined
2019-10-15
源自:JavaScript深入淺出 2-2
正在回答
x 未定義
a.prototype.x
你始終沒有定義X屬性啊
舉報
由淺入深學習JS語言特性,且解析JS常見誤區,從入門到掌握
1 回答為什么都是undefined?
1 回答請問倒數第二行的x為什么是undefined呢?為什么不是101?
1 回答reduce結果怎么是undefined?
4 回答如果我改成var o={a:37,f:f(),g:g()},g是可以打印出來的,f卻是undefined,為什么?
2 回答為啥new完之后,再去訪問obj.y就是undefined呢?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-10-03
x 未定義
2020-06-06
a.prototype.x
2019-10-15
你始終沒有定義X屬性啊