substring c# js java
- 前端
- Easter79
- 0
c#
String.SubString(int index,int length)
String.SubString(int start)
等效于
javascript
stringObject.substr(start,length)
stringObject.substr(start)
java
* @param beginIndex the beginning index, inclusive.* @param endIndex the ending index, exclusive.
public String substring(int beginIndex, int endIndex)
与上面相对应的实现
public static String subString(String src, int startIndex, int length){
return src.substring(startIndex, startIndex+length);
}
------------------------------------------------------------------------------------------
javascript
stringObject.substring(start,stop)
免责申明:本站发布的内容(图片、视频和文字)以转载和分享为主,文章观点不代表本站立场,如涉及侵权请联系站长邮箱:xbc-online@qq.com进行反馈,一经查实,将立刻删除涉嫌侵权内容。