betaCalc.setValue(3); // => 3 betaCalc.plus(3); // => 6 betaCalc.minus(2); // => 4 为了简单起见,我们将计算器定义为 object-literal