Contents

Views 7039 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

큐 형식의 배열 사용 샘플..

<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>


?

List of Articles
No. Category Subject Author Date Views
421 Develop [ios] GMT Date와 Local Date 변환하기 hooni 2015.04.07 908
420 Develop [ios] GPS 이용 상태 확인 hooni 2015.04.27 1412
419 Develop [ios] How to set up clang formatter hooni 2015.09.17 1465
418 Develop [ios] How To Use UIScrollView to Scroll and Zoom Content (Using Objective-C) file hooni 2016.03.23 1749
417 Develop [ios] How To Use UIScrollView to Scroll and Zoom Content (Using Swift) file hooni 2016.03.23 7634
416 Develop [ios] Hybrid 앱 스터디 발표 자료 file hooni 2013.09.06 13796
415 Develop [ios] IB 없이 개발하기 (html) secret hooni 2013.05.31 0
414 Develop [ios] iCloud관련 저장 디렉토리 hooni 2013.04.23 29675
413 Develop [ios] In App Purchase 개발 hooni 2013.11.20 9289
412 Develop [ios] iOS 4.0 beta 에서 3.1.3으로 다운그레이드 하는 법 file hooni 2013.04.23 37540
411 Develop [ios] iOS 6.0 이상 회전 하기 (이전 버전과 비교 변경 부분) file hooni 2014.01.27 34236
410 Develop [ios] iOS 7 이상 UIBarButtonItem 여백 file hooni 2014.03.27 4091
Board Pagination Prev 1 ... 31 32 33 34 35 36 37 38 39 40 ... 71 Next
/ 71