JavaScript对象有线吗?我不知道为什么?

时间:2018-05-18 06:47:49

标签: javascript node.js object

这是我在节点

中运行时的结果

enter image description here

这是我在chrome

中运行时的结果

enter image description here

2 个答案:

答案 0 :(得分:0)

没什么"怪异的"在Chrome中,a:""反映物体的实际价值确实是"" (当你记录它时不是那个)。

如果你把鼠标放在" i"它会说:"以下的价值刚刚评估了)

答案 1 :(得分:0)

输出中根本没有问题。

在打印值时," form.a"的值是123.但是a的值更新为""在代码中。因此行为。

相关问题