Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Firefox 的 FireBug 控制台中,为什么会发生这种情况?
>>> a = 1 1 >>> var a = 50 undefined >>> a 50
我只是想学一些js!
var ...是一个声明。
var ...
语句没有值,因此控制台打印undefined语句的结果。
undefined
在一个内