调用另一页中的jquery函数

调用另一页中的jquery函数,jquery,html,ajax,Jquery,Html,Ajax,考虑两个页面,一个是hello.html,另一个是wow.html hello.html由以下脚本组成 <script> $(document).ready(function() { $( "#loader" ).load( "wow.html"); }); </script> 现在,如何调用hello.html中的document.ready函数,并在wow.html中成功提交ajax表单。 任何人请告诉我如何重新加载/刷新页面而不重新加载效果 在hello.ht

考虑两个页面,一个是hello.html,另一个是wow.html

hello.html由以下脚本组成

<script>
$(document).ready(function() {
  $( "#loader" ).load( "wow.html");
});
</script>
现在,如何调用hello.html中的document.ready函数,并在wow.html中成功提交ajax表单。
任何人请告诉我如何重新加载/刷新页面而不重新加载效果

在hello.html中:

function initFunc() {
    $("#loader").load("wow.html");
}
$(document).ready(initFunc);
现在,在wow.html中,您可以随时调用
initFunc()


希望有帮助。

在函数中编写hello.html的内容,并在ajax调用成功时调用该函数。
function initFunc() {
    $("#loader").load("wow.html");
}
$(document).ready(initFunc);