<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
<script type="text/javascript">
let obj = {
one: {
value: '12',
hasVal: false
},
two: {
value: '33',
hasVal: false
}
}
Object.keys(obj).map(key => {
const item = obj[key]
console.log(item)
})
</script>
</html>
网友评论