<static> boolean
isin(abs, str)
判断字符串包含 abs中包含str返回true 否则返回false
Parameters:
abs
{string}
[required]主字符串
str
{string}
[required]需要检查的字符串
Returns:
{boolean}
Example:
tlv8.String.isin('stringMystring','My')
<static> boolean
isHave(abs, str)
判断字符串包含 以英文逗号分隔的字符串数组abs中包含str返回true 否则返回false
Parameters:
abs
{string}
[required]主字符串( 以英文逗号分隔的字符串,如:aa,bb,cc,dd)
str
{string}
[required]需要检查的字符串
Returns:
{boolean}
Example:
tlv8.String.isHave('dd,bb,cc,aad','cc')