Why can"t window.location.reload
be called back?
//
function fn01 (fn){
fn && fn();
};
function callBackFn(){
console.log("");
};
//
fn01(callBackFn); //
fn01(window.print); //
fn01(window.location.reload); //
//
-
I know that you can wrap location.reload
with an anonymous function, and then you can implement a callback
. I wonder why it can"t be called back.
Thank you for your help from the old driver, and thank you for answering
-
` `
this
fn01(window.location.reload.bind(location));