How to make an AJAX request on page load

前端 未结 7 1424
耶瑟儿~
耶瑟儿~ 2021-01-28 01:47

I need to call GetAllProperties() function during page loading instead of calling the GetAllProperties() function after page is fully loaded. My code l

相关标签:
7条回答
  • 2021-01-28 02:25

    If you want to call javascript function while page load than you should try following function :

    window.onload = function() {
      GetAllProperties();
    };
    
    0 讨论(0)
提交回复
热议问题