比如: var expression = "alert('haha')"; Bee.ElementaryArithmeticUtils.isArithmeticExpression(expression); Bee.ElementaryArithmeticUtils.calculate(expression); eval(expression)不能用于检查四则运算
Activity
[-]四则运算检查isArithmeticExpression和calculate方法参数可任意执行js脚本[/-][+]四则运算检查isArithmeticExpression和calculate方法参数可执行js脚本[/+]shadowOfCode commentedon Aug 24, 2018
多谢提出来,我看看
shadowOfCode commentedon Sep 20, 2018
已经改好了