WEB(웹)
(javascript) isNaN()
SharingWorld
2018. 6. 22. 11:17
isNaN()
is Not a Number ?
// 마지막 캐릭터가 숫자일 때
if (!isNaN(expression[expression.length - 1]))
// 연산자를 추가시킨다
$value.text(expression + $(this).attr('operator'));