距开课0天0时0分-10218971秒
phpcn_u2242016-12-17 17:02:58 0 2 576
[JavaScript讨论组]源自课程章节:JavaScript中String对象的属性和方法举报回复话题 ↕
substr() subspring() 我知道他们的使用区别 但是在实际应用中有什么区别么?
2
0
分享
数据分析师 2017-09-30 22:49:422楼
substr() subspring()在实际使用中有什么区别么?-PHP中文网问答-substr() subspring()在实际使用中有什么区别么?-PHP中文网问答
围观一下哦,学习一下。
赞 +0添加回复
阿神 2016-12-17 17:04:271楼
substr方法用于返回一个从指定位置开始的指定长度的子字符串。stringObject.substr(start [, length ])
subspring()用于提取字符串中介于两个指定下标之间的字符 substring(start,end)
如果不知道长度就只能用substring了
数据分析师 2017-09-30 22:49:422楼
substr() subspring()在实际使用中有什么区别么?-PHP中文网问答-substr() subspring()在实际使用中有什么区别么?-PHP中文网问答
围观一下哦,学习一下。
赞 +0添加回复
阿神 2016-12-17 17:04:271楼
substr方法用于返回一个从指定位置开始的指定长度的子字符串。stringObject.substr(start [, length ])
subspring()用于提取字符串中介于两个指定下标之间的字符 substring(start,end)
如果不知道长度就只能用substring了
赞 +0添加回复