所有实例化对象享用prototype里面的方法和属性。
function book() { this.type = type; } book.prototype = { price: 21}; var A = new book(); var B = new book(); A.price; //21 B.price; //21