<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<script>
//对象的遍历 for in。
// for (var k in vue) {
// console.log(vue[k]);
// }
var ren = {
name: "小红",
sex: "男",
age: 30,
}
//对象的遍历
for (var k in ren) {
console.log(ren[k]);
}
</script>
</body>
</html>