const data = {
one: 'first',
two: 'second',
three: 'third'
}
for (var i in data) {
console.log('键:' + i)
console.log('值:' + data[i])
}
结果是:
const data = {
one: 'first',
two: 'second',
three: 'third'
}
for (var i in data) {
console.log('键:' + i)
console.log('值:' + data[i])
}
结果是: