html文件:
<!DOCTYPE html>
<html>
<head>
<title>test4</title>
<script src="tt.js">
</script>
</head>
<body>
</body>
</html>
tt.js文件:
person=new Object();
person.firstname="Bill";
person.lastname="Gates";
person.age=56;
person.eyecolor="blue";
document.write(person.firstname+" is "+person.age+" years old.");