用法:
var a = "abcdefghijk"
var b = i.ssg(a, 2, 6)
//将提示:cdef
syso(b)
var a = "abcdefghijk"
var b = i.ssg(a, 6)
//将提示:ghijk
syso(b)
说明:
根据字符的位置进行截取字符,若失败将变量“b”赋值 null
用法:
var a = "abcdefghijk"
var b = i.ssg(a, 2, 6)
//将提示:cdef
syso(b)
var a = "abcdefghijk"
var b = i.ssg(a, 6)
//将提示:ghijk
syso(b)
说明:
根据字符的位置进行截取字符,若失败将变量“b”赋值 null