javascript - convert string to expression eval(“hello == hello”) not work

后端 未结 0 968
执笔经年
执笔经年 2020-12-07 22:46

I have to convert a string to an expression. Example:

"5 == 5"

and I use eval("5==5") and it works.

But if

相关标签:
回答
  • 消灭零回复
提交回复
热议问题