jQuery로 CSS 속성의 숫자 부분만 얻는 방법? CSS 속성을 바탕으로 수치 계산을 해야 합니다.그러나 이를 사용하여 정보를 가져올 경우: $(this).css('marginBottom') 값 '10''을 반환합니다.자는지에이이까을?이rrtoesftoekat자이s을는에이>px아니면%아니면em아니면 뭐요?parseInt($(this).css('marginBottom'), 10); parseInt 유닛을 자동으로 무시합니다. 예를 들어, var marginBottom = "10px"; marginBottom = parseInt(marginBottom, 10); alert(marginBottom); // alerts: 10 이렇게 하면 문자열에서 숫자가 아닌 모든 부호, 점이 아닌 부호가 지워집니다. $..