-
isNaNJava Script 2019. 5. 14. 17:44
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script type="text/javascript"> document.write(isNaN(parseInt("123"))); document.write("<br>"); document.write(isNaN(parseInt("A123"))); document.write("<br>"); document.write(isNaN(parseInt("123A"))); document.write("<br>"); document.write("<hr>"); document.write(isNaN(Number("123"))); document.write("<br>"); document.write(isNaN(Number("A123"))); document.write("<br>"); document.write(isNaN(Number("123A"))); document.write("<br>"); </script> </head> <body> </body> </html>
'Java Script' 카테고리의 다른 글
자바스크립트 Form 생성하여 Post 전송 (0) 2019.08.30 Json (0) 2019.05.29 음력달력 연습 3 (0) 2019.02.11 음력달력 연습 2 (0) 2019.02.11 음력달력 연습 1 (0) 2019.02.11