How to call functions in jquery externally.

I just learned jqery recently. How can I call this.

(function ($) {
    "use strict";
    var LY = {
            xx : function (url,data) {},
            yy : function (url,data) {}
    }   
})(jQuery);
//
$.LY.xx(url,data);
May.22,2021

1. function ($) {"use strict";} ;
this is the definition method of an anonymous function
2. (function ($) {"use strict";}) (jQuery)
this is the call to the anonymous function, passing the jQuery object to $
3. The greatest advantage of this way of writing is the formation of closures. In (function ($) {. }) (jQuery) internally defined functions and variables can only be valid within this scope, that is, the LY object you define can only use
4 in anonymous functions. Is it your intention to extend custom methods to $(jquery) , if you can use the following methods
jQuery
1.$.extend()

<script> 
      $.extend({
        print1:function(name){ //print1name
            console.log(name)
        }
    });
     $.print1("") ; //$.();
</script>     

2.($.fn.extend())
<body>
    <input type="text">
    <script>
            $.fn.extend({
            getMax:function(a,b){
                var result=a>b?a:b;
                console.log(result);
            }
        });
        $("input").getMax(1,2);        //$().();
    </script>
</body>

(function ($) {
    "use strict";
    $.LY = {
            xx : function (url,data) {},
            yy : function (url,data) {}
    }   
})(jQuery);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb6809-483b0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb6809-483b0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?