이론/jQuery

[jQuery] CSS의 값에서 '문자' 값만 빼기

millfeel1298 2021. 10. 27. 12:33
const value = $('선택자').css('margin-top').replace(/[^-\d\.]/g, '');