📜  动态运算符 javascript if 语句 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:16.042000             🧑  作者: Mango

代码示例1
var post = 10, logic = '>', value = 100;
var valid = eval(post + logic + value);