ebw Posted March 13, 2007 Report Share Posted March 13, 2007 varbuut kads var izliidzeet. kautkaa nesanaak uzrakstiit vienu while ciklu. elementu skaits nav zinaams.. vinjam buutu jaapstaigaa elementi dokumetaa kuri numureejas aptuveni: "1_1", "1_2" apmeeram shaadi: var z = 1; var b = 1; while (z<5) { while (b<5) { alert(+ z +'_'+ b); b++; } z++; } rezultaataa vinjsh tiek pie 1_1, 1_2, 1_3, 1_4 bet kaa izdariit lai dabuutu aara arii 2_1, 3_1 utt.?? paldies! Link to comment Share on other sites More sharing options...
andrisp Posted March 13, 2007 Report Share Posted March 13, 2007 var z = 1; var b = 1; while (z<5) { while (b<5) { alert(+ z +'_'+ b); b++; } b = 1; z++; } PS. Tu kaut kā interesanti indentē kodu. Link to comment Share on other sites More sharing options...
ebw Posted March 13, 2007 Author Report Share Posted March 13, 2007 Nevajag taisīt muļķīgas QUOTEs (bubu) o. liels paldies! shis variants straadaa taa kaa vajaga. p.s. kopeejot kautkaa sabiidiijies tas idents drusku ne taa :) Link to comment Share on other sites More sharing options...
Recommended Posts