• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

gisoracle

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

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

arcgis jscript参考http://technet.microsoft.com/zh-cn/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 或负数,将返回一个空字符串。如果没有指定该参数,则子字符串将延续到字符串的结尾。

示例

下面的示例阐释了 substr 方法的用法。

 
复制
function SubstrDemo(){
   var s, ss;                //Declare variables.
   var s = "The rain in Spain falls mainly in the plain.";
   ss = s.substr(12, 5);  //Get substring.
   return(ss);               // Returns "Spain".
}

anchor 方法

big 方法

blink 方法

bold 方法

charAt 方法

charCodeAt 方法

concat 方法(字符串)

fixed 方法

fontcolor 方法

fontsize 方法

fromCharCode 方法

indexOf 方法

italics 方法

lastIndexOf 方法

link 方法

localeCompare 方法

match 方法

replace 方法

search 方法

slice 方法(字符串)

small 方法

split 方法

strike 方法

sub 方法

substr 方法

substring 方法

sup 方法

toLocaleLowerCase 方法

toLocaleUpperCase 方法

toLowerCase 方法

toString 方法

toUpperCase 方法

valueOf 方法

posted on 2013-01-06 22:29  gisai  阅读(402)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3