将两个字符串拼接为一个字符串 out = in1 + in2
in1: 字符串
in2: 字符串
out: 字符串 out = in1 + in2
in1为"hello",in2为"world",那么out就是"helloworld"
判断str2是否是str1的子串,即str1是否包含str2。如果是,返回true,反之false
str1: 字符串 源字符串
str2: 字符串 子串
out: 布尔值 如果str2是str1的子串,返回true
str1是helloworld, str2是low,则out为true。因为“low”包含在“helloworld”中
str1是helloworld, str2是abc,则out为false。因为“abc”不包含在“helloworld”中
提供将字符串转换为json格式。
‘method’:字符串,如果‘method’值为‘parse’,将会输出json格式,否则输出原字符串。
‘Inout’:字符串,将被解析的字符串。
‘out’:对象,解析结果。