Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/02/2011, 11:15
Avatar de maycolalvarez
maycolalvarez
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Caracas
Mensajes: 12.120
Antigüedad: 15 años, 9 meses
Puntos: 1532
Respuesta: diferencia entre substr y substring

sinceramente no había caído en cuenta de que existiera en js substr, porque siempre he usado substring, revisando las documentaciones parecen similares, excepto que substr tiene problemas con IE (Tip: To extract characters from the end of the string, use a negative start number (This does not work in IE).), por eso mejor usa substring.

http://www.w3schools.com/jsref/jsref_substr.asp
http://www.w3schools.com/jsref/jsref_substring.asp
__________________
¡Por favor!: usa el highlight para mostrar código
El que busca, encuentra...