<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<title>无标题页</title>
</head>
<body>
<script language="javascript" type="text/javascript">
var book={
title:"JavaScript & Ajax 网页设计技术手册",
author:"Smartdong",
price:"78",
introduce:function(){
document.write("Hello,My name is:"+this.title+"<br>"+this.author+"br");
}
}
book.introduce();
</script>
</body>
</html>
转载于:https://www.cnblogs.com/yingpp/archive/2008/12/12/1353779.html