为什么控制台能打印俩个数据,可是赋值时只显示一个,这是什么原因?
为什么控制台能打印俩个数据,可是赋值时只显示一个,这是什么原因?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一样
因为键一样,第二个把第一个给覆盖了。这种问题不该问
值被覆盖不是很正常嘛?