有没有办法做到类似于以下任何一种: var1 = 10; var2 = 20; var operator = "<"; console.log(var1 operator var2); // returns true – 要么 – var1 = 10; var2 = 20; var operator = "+"; total = var1 operator var2; // total === 30