0
두 페이지 중 하나는 hello.html이고 다른 하나는 wow.html입니다.다른 페이지에있는 jquery 함수를 호출하려면
$(function() {
$('.bysh').on('submit', function (e) {
$.ajax({
type: 'post',
url: 'entco.jsp',
data: $(this).serialize(),
success: function (result) {
}
});
e.preventDefault();
});
});
지금에 기능 선물을 document.ready 호출하는 방법 안녕하세요
hello.html는 fallowing 스크립트
<script>
$(document).ready(function() {
$("#loader").load("wow.html");
});
</script>
구성되어 있으며, wow.html에 JQuery와 함수를 다음과 같이 구성 .html은 aow 양식 제출 성공에 wow.html.
그리고 어느 쪽이든 페이지를 다시로드하거나 페이지를 새로 고침하는 방법을 알려주십시오. hello.html에서
hello.html의 내용을 함수로 작성하고 그 함수를 ajax 호출의 성공으로 호출하십시오. –