jQuery Document Ready and Function Scope

后端 未结 1 613
日久生厌
日久生厌 2020-12-19 19:16

I want to provide helper functions that allow various components of a complex jQuery-based UI to hide or show a loading div (used when an Ajax call is initiated fro

相关标签:
1条回答
  • 2020-12-19 19:47

    Right after posting, I realized what I had done wrong.

    function showLoading() {
        loadingControl.show();
    }
    

    should be

    showLoading = function() {
        loadingControl.show();
    }   
    
    0 讨论(0)
提交回复
热议问题