Recent posts

Recent comments

Archive

Calender

«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31



 
<script type="text/javascript">

// Number.isNaN() 함수가 적용되지 않을 때 추가할 내용 ( ie 11 이하 ) 
if ( ! Number.isNaN ){ 
        Number.isNaN = function isNaN ( value ){  return value !== value;  };
} 
</script>
 


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = "NaN"; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = NaN; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = undefined; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = null; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = [ ]; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = { }; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = "abc"; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = "123abc"; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


<p id="type"> </p>
<p id="global"> </p>

<p id="number"> </p>

<script type="text/javascript">

function testing (){ 

        var value = "abc123"; 

        var type = typeof value; 
        var global = isNaN( value ); 

        var number = Number.isNaN( value ); 

        document.getElementById( "type" ).innerHTML = type; 
        document.getElementById( "global" ).innerHTML = global; 
        document.getElementById( "number" ).innerHTML = number; 
} 
</script>


이 내용이 도움이 되셨다면, 아래의 하트 버튼을 눌러주세요. *^^*