<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JS对象--object</title>
<script type="text/javascript" src="tools.js"></script>
</head>
<body>
<script type="text/javascript">

var obj = new Object();
obj.name = "summy";
obj.age = 22;
obj.sex = "woman";
println(obj);
println("name:"+obj.name);
println("age:"+obj.age);
println("sex:"+obj.sex);
/*
[object Object]
name:summy
age:22
sex:woman
*/
</script>
</body>
</html>
function print(e){
document.write(e);
}

function println(e){
document.write(e+"<br>");
}