Skip to content

四则运算检查isArithmeticExpression和calculate方法参数可执行js脚本 #3

Description

@Red63

比如:
var expression = "alert('haha')";
Bee.ElementaryArithmeticUtils.isArithmeticExpression(expression);
Bee.ElementaryArithmeticUtils.calculate(expression);

eval(expression)不能用于检查四则运算

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions