js中是否有办法将逻辑运算符当作参数传递呢答:你要的是不是类似下面这样的效果:function calc(number1,operator,number2){ return eval(number1+operator+number2);}console.log(calc(1,"+",2));console.log(calc(1,"-",2));console.log(calc(1,"*",2));console.log(calc(1,"/",2));//要逻辑比较或运算也一样:console.log(...