bee.js
bee.js copied to clipboard
四则运算检查isArithmeticExpression和calculate方法参数可执行js脚本
比如: var expression = "alert('haha')"; Bee.ElementaryArithmeticUtils.isArithmeticExpression(expression); Bee.ElementaryArithmeticUtils.calculate(expression);
eval(expression)不能用于检查四则运算
多谢提出来,我看看
已经改好了