题目:
正常人:
function basicOp(operation, value1, value2) { switch (operation) { case '+': return value1 + value2; case '-': return value1 - value2; case '*': return value1 * value2; case '/': return value1 / value2; default: return 0; } }
骚板子(工作当中不要这么写)
function basicOp(o, a, b) { return eval(a+o+b); }