Develop
2013.04.23 16:03
[js] 큐 형식으로 배열사용.. ㅋㅋ
조회 수 7028 댓글 0
큐 형식의 배열 사용 샘플..
<html> <head> <title>JS test</title> <script> var map = new Array(); function view(){ while(map.length>0){ v = map.shift() + "<br>"; document.write( v ); } } function add(){ form = document.manage; if(form.memo.value!="") { map.push( form.memo.value ); form.memo.value = ""; form.memo.focus(); } return false; } </script> </head> <body> <form name=manage onSubmit="return add();"> <input type=text name=memo> <input type=button value=ADD onClick="add();"> <input type=button value=VIEW onClick="view();"> </form> <script> document.manage.memo.focus(); </script> </body> </html>
-
[js] 이미지 미리 로딩하기
-
도메인 관련 솔루션 분석할 거.. ㅋㄷ
-
[js] 큐 형식으로 배열사용.. ㅋㅋ
-
[c][java] 소켓 프로그래밍(채팅 서버 C, 클라이언트 Java)
-
[php] 메모장 - 웅지학원 ([c] mysql 백업프로그램 포함)
-
[js] 점점 커지는 새창..
-
[c++] 템플릿(Template) 예제 소스..
-
[c] 소켓 프로그래밍 요약..
-
[web] 웹 연동 프로그램 모음..
-
[c] 단기과정[01/24] 정렬 알고리즘
-
[c] 패킷 에널라이저 예제 소스(성안당)
-
[c++] 트리컨트롤 스텝 2 예제..