JavaScript and Java in the substring substr

  • JavaScript :: substr (index, length) from the index start capturing how many, if the length is empty, then the interception in the end, the penultimate one -1, -2 the penultimate position. . . .
  • Java: substring (startIndex, endIndex) intercepts include the subject does not include the start position to the target position at the end of

Guess you like

Origin www.cnblogs.com/zouwangblog/p/10984032.html