一、String
1.1创建 ee.String()
var string = ee.String("this is a string")
print(string)
1.2 修改 string.cat() string.replace()
var string1 = ee.String("I am the first.")
var string2 = ee.String("I am the second.")
var cat_string = string1.cat(string2)
print(cat_string)
var string1 = ee.String("GDUT")
var string2 = string1.replace("D","S")
print(string2)
1.3 段落 string.split() string.match()
var string1 = ee.String("A_B_C_D_E")
var string2 = string1.split("_")
print(string2)
var string1 = ee.String("A B C D E")
var string2 = string1.match("C","i")
print(string2)
1.4 查询 string.slice() string.length()
var string1 = ee.String("1234 5678 91123")
var string2 = string1.slice(5 10)
print(string2 )
var string1 = ee.String("ABCD 1234")
var string2 = string1.length()
print(string1,string2)
二、Number
2.1 创建ee.Number()
var number = ee.Number(497615645)
print(number)
2.2 修改number.uint8() number.toUint8() number.int8() number.toInt8() ......
var number1 = ee.Number(-5.69)
var number2 = number1.int8()
var number3 = number1.toInt8()
print(number1,number2,number3)
2.3 比较number.eq() number.neq() ...... number.and() number.or() ee.Algorithms.IsEqua() ......
var number1 = ee.Number(8)
var number2 = ee.Number(-8)
var True_False = number1.eq(number2)
print(number1,number2,True_False)