first code
window.onload = function () {
...//
}
window.onresize = function () {
...//
}
second code
function checkInBL () {
...//
}
window.onload = checkInBL ();
window.onresize = checkInBL ();
the first piece of code is completely normal, and the second piece of code can be triggered normally only by onload, but not by onresize. Why?