<input
type="text"
name="it_price"
value="<?php echo $it['it_price']; ?>"
id="it_price"
class="frm_input"
size="8"
onkeyup="document.getElementById('cal_price').innerText=( parseInt(this.value)|0)*0.88"> 원
노란색 코드 부분은 어떤 의미인지?
답변 3개
채택된 답변
+20 포인트
비트 연산자 OR입니다.

출처 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators
NaN을 방지한 코드입니다.

답변을 작성하려면 로그인이 필요합니다.