Light-open platform ( WebEasy ) provides a simple string manipulation function, similar to ( calculation expression ) schoolbag Value Expression
start character |
< P align= "left" > action |
delimiter |
string |
Terminator |
@ { |
act |
: |
str |
} |
Note: Action characters can no longer be used as schoolbag names
Cases:
Comparison of string groups
@ {member: substring ( string Group /..) /..)} --string is included in the calculation
Function: Determines whether the substring is contained in a string group (in / separated), returns True, otherwise false, returns True if the string group is empty (primarily for permission judgments, a string group that represents a department, role, or user name with permissions, and no limit when empty)
Examples:
@ {member: admin ( dept0/acl0.2/admin )} return true Span style= "COLOR: #660000" >
@ {member: tianhua ()} return true
@ {member: tianhua ( dept0/acl0.2/admin Span style= "COLOR: #660000" > returns false
@ {cover: string Group /.. /.. ( substring )}--String overlay calculation
Function: Determines whether the string group (with / separated) contains substrings, returns True, otherwise false
Examples:
@ {cover:organize/listen/is/me(is)} return true
@ {cover: organize/listen/is/me (not)} return false
Easy to download resources for Internet development Platform
Platform and Latest development Manuals free Download: http://download.csdn.net/detail/tx18/8464425
Development example: Light Open e-commerce website , free download: http://download.csdn.net/detail/tx18/8318585
Light open platform will be upgraded to provide you with more powerful and easy features, please pay attention to Download the latest version
Light Open Platform (original WebEasy) string calculation 2---Comparison of string groups