arcgis jscript参考http://technet.microsoft.com/zhcn/library/997bcd30(v=vs.80)

arcgis jscript参考http://technet.microsoft.com/zh-cn/library/997bcd30(v=vs.80)

返回一个从指定位置开始,并具有指定长度的子字符串。

 
function substr(start : Number [, length : Number]) : String
start

必选。所需的子字符串的起始位置。字符串中第一个字符的索引为 0。

length

可选项。返回的子字符串中包含的字符数。

如果 length 为 0 或负数,将返回一个空字符串。如果没有指定该参数,则子字符串将延续到字符串的结尾。

原文地址:https://www.cnblogs.com/gisoracle/p/2848386.html