2012年9月16日
摘要: var BaseCalculator = function() { this.decimalDigits = 2;};BaseCalculator.prototype = { add: function(x, y) { return x + y; }, subtract: function(x, y) { return x - y; }};var Calculator = function () { //为每个实例都声明一个税收数字 this.tax = 5;}; Calculator.prototype = ... 阅读全文
posted @ 2012-09-16 09:57 冲锋的路上的兵 阅读(248) 评论(0) 推荐(0) 编辑