Calling a javascript function after loading a page with [removed].assign

前端 未结 3 1501
星月不相逢
星月不相逢 2021-01-22 09:06

Is it possible to call a javascript function after loading a page with window.location.assign? I have this code.



        
3条回答
  •  长情又很酷
    2021-01-22 09:33

    I don't think you can do that. Your best bet would be to use the jquery library and then do something like:

    $("body").load("spirituality.php", function() {
        ReadEnglish();
    });
    

提交回复
热议问题