<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS-定义对象</title>
</head>
<body>
</body>
<script>
/* 对象定义 */
var user = {
id: 1,
name: "买买提",
age: 26,
}
console.log(user.id)
console.log(user.name)
</script>
</style>
</html>