满足以下功能:
add(1).getValue(); // 1 add(1)(2).getValue(); // 3 add(1)(2)(3).getValue(); // 6 add(1)(2, 3).getValue(); // 6 add(1, 2)(3).getValue(); // 6 add(1, 2, 3).getValue(); // 6
答案已隐藏,点击"查看答案"按钮查看参考答案