
02.08.2005, 21:26
|
|
|
.grin! wuz here
Регистрация: Aug 2004
Адрес: paradise city
Сообщений: 3,981
|
или так:
function trim(txt){
while(txt.charCodeAt(0)<33) txt = txt.substs(1, txt.length);
while(txt.charCodeAt(txt.length-1)<33) txt = txt.substs(0, txt.length-1);
return txt;
}
my_txt = trim(" то что нужно \n \t ");
__________________
Breakcore them all!
|