jQuery의 replaceWith ()와 html ()의 차이점은 무엇입니까? HTML이 매개 변수로 전달 될 때 jQuery의 replaceWith () 및 html () 함수의 차이점은 무엇입니까? 이 HTML 코드를 보자 : Hello World 하기: $('#mydiv').html('Aloha World'); 결과는 다음과 같습니다. Aloha World 하기: $('#mydiv').replaceWith('Aloha World'); 결과는 다음과 같습니다. Aloha World 따라서 html () 은 요소의 내용을 대체하고 replaceWith () 는 실제 요소를 대체합니다. replaceWith ()는 현재 요소를 대체하지만 html ()은 단순히 내용을 대체합니다. replaceWith ..