-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新手想自己写条件判断,类似 "include": "(INT>1)&(CHR>3)&(EVT?[10101])&(TLT?[1028])",怎么用一套代码判断 #346
Comments
写一个复杂一点的做为例子
[
[
["INT>1", "|", "CHR>3"],
"&",
["MNY>5", "|", "STR>8"]
],
"|",
"TLT?[1001,1002]",
"|",
[
"EVT=10001",
"&",
["INT>5", "|", "CHR>9"]
]
]
然后根据 |
变成 js eval来执行 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"include": "(INT>1)&(CHR>3)&(EVT?[10101])&(TLT?[1028])",
"include": "(INT>2)&(CHR>4)&(EVT?[10101])",
怎么用一套代码判断类似这样的条件呢?有大佬给个思路吗?
The text was updated successfully, but these errors were encountered: