代码怎么执行的结果不是一样的,奇怪,求解
document.write("o[key] ••••••" + "
")
for (var key in o) {
document.write(key + " = " + o[key] + "
")
}
document.write("o.key ••••••" + "
")
for (var key in o) {
document.write(key + " = " + o.key + "
")
}
怎么结果不一样呀?????
document.write("o[key] ••••••" + "
")
for (var key in o) {
document.write(key + " = " + o[key] + "
")
}
document.write("o.key ••••••" + "
")
for (var key in o) {
document.write(key + " = " + o.key + "
")
}
怎么结果不一样呀?????
2016-09-19
举报