var Book = function (id, name, price) {
var num = 1;
function checkId() {
};
this.getName = function () { };
this.getPrice = function () { };
this.setName = function () { };
this.setPrice = function () { };
this.id = id;
this.copy = function () { };
this.setName(name);
this.setPrice(price);
}
Book.ischinesse = true;
Book.resetTime = function () {
console.log('new Tiem')
};
Book.prototype = {
isJsBook: false,
display: function () { }
}
var b = new Book(11, '设计模式', 50);
console.log(b.num)
console.log(b.isJsBook);
console.log(b.id);
console.log(b.ischinesse);
console.log(Book.ischinesse)
Book.resetTime()
console