<script>
var Book = function(isbn, title, author){
this.isbn = isbn;
this.title = title;
this.author = author;
}
Book.prototype = {
/*************Add Function display()***********/
display:function(){
return "The Book <" + this.title +"> is edit by "+ this.author;
},
getIsbn:function(){
return this.isbn;
},
getTitle:function(){
return this.title;
},
getAuthor:function(){
return this.author;
}
}
var book = new Book("000001","javascript设计模式","Jim&Tom");
alert(book.display());
alert(book.getTitle())
</script>