为什么控制台能打印俩个数据,可是赋值时只显示一个,这是什么原因?

小程序 文章 2020-09-05 15:41 579 0 全屏看文

AI助手支持GPT4.0

为什么控制台能打印俩个数据,可是赋值时只显示一个,这是什么原因?Why can the console print two pieces of data, but only one is displayed when assigning a value? What is the reason?

为什么控制台能打印俩个数据,可是赋值时只显示一个,这是什么原因?

为什么控制台能打印俩个数据,可是赋值时只显示一个,这是什么原因?

Why can the console print two data, but only one is displayed when assigning values? What is the reason?

回答:

拾忆:

值被覆盖不是很正常嘛?

搞文艺的猿:

很明显,覆盖了,key一样

stop eating:

因为键一样,第二个把第一个给覆盖了。这种问题不该问

-EOF-

AI助手支持GPT4.0